If you skip the first 50 seconds of a video, the browser will create a new request with a ranged header. For exaple "Content-Range: bytes 5000000-60005535/60005536". So it gets only the data that is needed beginning at the point where you skipped to and not the hole video. When I use the fetch API and set the range headers, I will aswell only download that range.
The problem is that the when I convert the data to blob and creat an object url for it that I can use in the video element, it won't work until I download every byte from the start to where my range ends. So if I download 20-30MB, I still need the first 20MB to make the video player work. And I dont get it why, since the browser does the exact same thing if we skip.
I saw an article from google which shows how to preload videos which is kinda usefull, but it only works with fragmented mp4 why it is useless.
Thats why I thought it would work when I get the data as a readable stream and then convert these chunks of buffers into a blob, but it didn't work.
Is there any way how we can fetch a part video, like beginning at 15 seconds and ending at 25 seconds.