[Vuejs]-NodeJS request with range does not work with HTML5 video

0👍

try

'content-length': end - start + 1,

and this

let end = parts[1] ? parseInt(parts[1], 10) : stat.size - 1; 

instead of

let end = parts[1] ? parseInt(parts[1], 10) : start + 10 * 1024 ** 2;

Leave a comment