Have you ever come across a website that seems to fetch .webm files from their server, some appearing like chunks of the file while others seem to be complete webm files? But when you try to play these files on a custom video player or any other player, they either show a black or white screen, or simply don't play at all.
My suspicion is that it's due to incomplete headers
I speculate that the hosting website downloads a portion of the video file from the server and then separately attaches the webm headers in order to play it on their specific player.
The challenge here is my desire to play (and eventually download) a fully functioning .webm file based on these corrupted versions. My belief is that I may need to create custom .webm headers and attach them at the start of the video. However, I require guidance on how to achieve this using client-side JavaScript as outlined in the WebM Specification. Alternatively, there's also mention of the MediaSource API which could potentially serve this purpose (check out the website here).