From 1a990cf852ea2a352d24af4a769abd5a1d3055df Mon Sep 17 00:00:00 2001 From: Ankit Varshney Date: Sun, 26 Nov 2023 22:23:46 +0530 Subject: [PATCH] changed chunk size --- controllers/video_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/video_controller.js b/controllers/video_controller.js index 6de8f00..ee324e0 100644 --- a/controllers/video_controller.js +++ b/controllers/video_controller.js @@ -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(