I
I
igorsrt2018-09-21 13:51:14
css
igorsrt, 2018-09-21 13:51:14

The video tag doesn't fire on the first page load. Why?

Hello! Such situation:

<video autoplay loop poster="poster.jpg">
      <source src="video.ogv" type='video/ogg; codecs="theora, vorbis"'>
      <source src="video.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
      <source src="video.webm" type='video/webm; codecs="vp8, vorbis"'>
       <object data="video.swf" type="application/x-shockwave-flash">
                <param name="movie" value="video.swf">
            </object>
    </video>

It seems to work, at least from those computers on which I myself looked ... But there are complaints that the video does not start on the first load (only the poster is loaded). when you restart the video starts working :( Site on MODX... What could be the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Varlamov, 2018-09-26
@bes_internal

https://developers.google.com/web/updates/2017/09/...

Muted autoplay is always allowed.
Autoplay with sound is allowed if:
User has interacted with the domain (click, tap, etc.).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question