D
D
Denis Bukreev2017-08-24 13:32:11
JavaScript
Denis Bukreev, 2017-08-24 13:32:11

How to fully download a video before playing?

So it goes

<video preload="auto" id="home-desktop-video">
  <source src="/uploads/video/ir_720.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
  <source src="/uploads/video/ir_720.webm" type='video/webm; codecs="vp8, vorbis"' />
  <source src="/uploads/video/ir_720.ogv" type='video/ogg' />
</video>

In theory (and according to the docks), the video should load to the end, but for me it only loads at 32%, which is why I can’t start the video after it is fully loaded.
What to do? How else to upload a video?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vovanys, 2017-08-24
@denisbookreev

100% download is not needed, users will not say thank you. there is a lot of traffic
here, the problem is either in the player, or the http server, which does not know how to give the required amount when scrolling the file.
search for nginx mp4 rewind.

P
Paul Nice, 2017-08-25
@Paul_Nice

If the user watches the video, then the following video fragments will be downloaded to him.
If the user pauses playback, they won't.
Why do you need streaming if you need to download the entire file to the user?
Use the download immediately.
What problem needs to be solved?
If you need to speed up navigation and video start, then commercial streamers can do this, unless, of course, the server has a channel of sufficient quality.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question