Move to segment index

This commit is contained in:
2024-02-13 15:53:42 -07:00
parent dc5a90cf1a
commit 2fc7c8ab1e
3 changed files with 4 additions and 4 deletions

View File

@@ -99,7 +99,7 @@ class StreamUploadManager<TCacheShape> {
console.log(`Requesting upload link for chunk ${chunkId}`);
const result = await this.client.mutate({
mutation: gql.GetUploadLinkDocument,
variables: { videoId: this.videoId, chunkIndex: chunkId },
variables: { videoId: this.videoId, segmentIndex: chunkId },
});
this.prefetchedUploadLinks[chunkId] = result.data.getUploadLink.uploadUrl;
return result.data.getUploadLink.uploadUrl;