Skip to content

Commit

Permalink
fix(video): updated endpoints for adding/removing streams from Archive (
Browse files Browse the repository at this point in the history
  • Loading branch information
conshus authored Mar 7, 2024
1 parent fbe1c27 commit 9652cac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/video/__tests__/video.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ describe('video', () => {
})
.persist()
.patch(
'/v2/project/abcd-1234/archive/b40ef09b-3811-4726-b508-e41a0f96c68f/stream',
'/v2/project/abcd-1234/archive/b40ef09b-3811-4726-b508-e41a0f96c68f/streams',
{ addStream: 'test-1234', hasAudio: false, hasVideo: true }
)
.reply(204);
Expand All @@ -645,7 +645,7 @@ describe('video', () => {
})
.persist()
.patch(
'/v2/project/abcd-1234/archive/b40ef09b-3811-4726-b508-e41a0f96c68f/stream',
'/v2/project/abcd-1234/archive/b40ef09b-3811-4726-b508-e41a0f96c68f/streams',
{ removeStream: 'test-1234' }
)
.reply(204);
Expand Down
4 changes: 2 additions & 2 deletions packages/video/lib/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class Video extends Client {
};

await this.sendPatchRequest<void>(
`${this.config.videoHost}/v2/project/${this.auth.applicationId}/archive/${archiveId}/stream`,
`${this.config.videoHost}/v2/project/${this.auth.applicationId}/archive/${archiveId}/streams`,
data,
);
}
Expand Down Expand Up @@ -746,7 +746,7 @@ export class Video extends Client {
streamId: string,
): Promise<void> {
await this.sendPatchRequest<void>(
`${this.config.videoHost}/v2/project/${this.auth.applicationId}/archive/${archiveId}/stream`,
`${this.config.videoHost}/v2/project/${this.auth.applicationId}/archive/${archiveId}/streams`,
{ removeStream: streamId },
);
}
Expand Down

0 comments on commit 9652cac

Please sign in to comment.