Skip to content

Commit

Permalink
backend: Add support for partial recording download using range headers
Browse files Browse the repository at this point in the history
Refactor recording controller to include range parameter in getRecordingAsStream function
  • Loading branch information
CSantosM committed Sep 23, 2024
1 parent 4776032 commit 2cd1ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openvidu-call-back/src/controllers/recording.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const streamRecording = async (req: Request, res: Response) => {

try {
logger.info(`Streaming recording ${recordingId}`);
const { fileSize, fileStream, start, end } = await recordingService.getRecordingAsStream(recordingId);
const { fileSize, fileStream, start, end } = await recordingService.getRecordingAsStream(recordingId, range);

res.setHeader('Accept-Ranges', 'bytes');

Expand Down

0 comments on commit 2cd1ed9

Please sign in to comment.