Answer the question
In order to leave comments, you need to log in
How to make a full buffering of the video before viewing, when pasting on the site?
Hello.
When inserting a video on the site, only some part of the video is buffered on pause, and further buffering does not occur until the "play" button is pressed.
I need to start playing only after the video is fully loaded.
The video was inserted in the following way:
<video id="example_video_1" muted loop controls preload="none" width="940" height="530">
<source src="<?=$mp4?>" type='video/mp4'>
</video>
var player1 = document.getElementById("example_video_1");
player1.load();
Answer the question
In order to leave comments, you need to log in
preload="auto" is the maximum possible preload level. Then it all depends on the video codec. mp4 is just quite streaming, so it will only be loaded in that part to ensure a quick start.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question