Answer the question
In order to leave comments, you need to log in
Videojs and player like YouTube or Vimeo?
Hello!
When watching a video, youtube/vimeo constantly sends requests to the server and receives video pieces (bytes). At the same time, they do not try to download all the videos, i.e. network activity stops when enough bytes have been downloaded for viewing.
This is implemented using blob . They don't use Range headers though: bytes=0-99 and so on. (but not the essence)
So I don’t understand how to do it either. Is it possible to configure Videojs to load bytes in chunks.
From off. documentation, just link <video src="file.mp4"/>
the file and you're done, although this also works as it should, loads the video as needed (but this is implemented through the js api in my opinion).
I want to do it via blob, so that the video cannot be downloaded just like that, without suffering, like youtube and vimeo.
Byte-range is configured on the server.
Answer the question
In order to leave comments, you need to log in
You need HLS broadcasting. In order not to cut mp4 into pieces in advance, you can take the nginx module, which can do it on the fly
https://github.com/kaltura/nginx-vod-module
Or take the nginx.org/ru/docs/http/ngx_http_hls_module module .html , but it comes as part of a paid subscription.
I, as a person who knows only js, would do it through nodejs
https://www.youtube.com/watch?v=OZHinPswQ1g
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question