D
D
Dmitry Fominykh2015-07-27 08:33:39
HTML
Dmitry Fominykh, 2015-07-27 08:33:39

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();

Tell me where to look for the problem? Could it be a server side issue?
The server is configured for 1C Bitrix, and CMS 1C Bitrix is ​​installed.
PS preload="auto" does not change anything

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Fominykh, 2015-07-28
@Finorion

We solved the problem with server settings.

D
Denis Ineshin, 2015-07-27
@IonDen

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 question

Ask a Question

731 491 924 answers to any question