+1 vote
by
I know how to add the ability to watch videos with the 'VIDEO' HTML tag. Just provide a link to the video (or add multiple sources), add subtitles using the 'TRACK' tag if needed. But that seems like a trivial way to add the ability to view a video file. Media players on various resources are much more complex. It's clearly not just about HTML 5. It even seems as if the video is divided into parts, and each of them is loaded if it is its turn. You can't even download it, as in the case of the 'VIDEO' tag. Are there any guides on this subject? I'd like to know how different streaming services make media players.
by
Have you tried typing your question into the search engine? The topic has indeed already been covered very well.

2 Answers

0 votes
by
 
Best answer
All HTML5 players are built around the video tag, but these days many use HLS or DASH technologies, which break video into chunks. These chunks are glued together in the player using the Media Source Extensions interface built into modern browsers and passed to the video tag. You can use hls.js or dash.js libraries, or players that use them (videoJS, playerJS, plyr, and so on).
0 votes
by
It's called streaming and it's very expensive. You need an RTMP server for streaming and they require licenses
...