I
I
iNval_iD2021-08-29 20:39:30
Google Chrome
iNval_iD, 2021-08-29 20:39:30

What is the difference in the behavior of the video tag in browsers?

I use this code

<video id="my-video" width="640" height="480" controls poster="" preload="metadata">
  <source src="video2/01.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
  Ваш браузер не поддерживает тег video.
</video>


On small videos and on the local machine, everything works as it should (because it loads almost immediately). But if the video is 500+ Mb and on the server...
Works fine in Firefox. Almost immediately there is an opportunity to start the video. It buffers and plays. In Chrome, however: until the entire video is loaded into the buffer, it will not start playing (tried on different machines and with pure chrome too)
And in the chrome console like this (until the video is fully loaded):

612bc6350a04a423434810.png

Tell me what could be the matter and how do i fix it to work fine in chrome too? It is desirable without changing the settings of the browser itself, but only with the code.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question