Skip to content

Commit

Permalink
changed chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
AVtheking committed Nov 26, 2023
1 parent c70d75c commit 1a990cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/video_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const videoCtrl = {
}
const videoPath = req.query.path;
const videoSize = fs.statSync(videoPath).size;
const CHUNK_SIZE = 10 ** 4;
const CHUNK_SIZE = 10 ** 5;
const start = Number(range.replace(/\D/g, ""));
const end = Math.min(start + CHUNK_SIZE, videoSize - 1);
const remainingTime = Math.floor(
Expand Down

0 comments on commit 1a990cf

Please sign in to comment.