Dev pokhariya
Dev pokhariya

Reputation: 336

HTML video auto play not working

Here is my code, but the video is not looping continuously.

<iframe src="files/media/video/moped.webm?&amp;autoplay=1&amp;loop=1&amp;title=0&amp;byline=0&amp;portrait=0" width="400" height="height: 722.375px;" frameborder="0" ></iframe>

I have tried to set autoplay to 0 and 1, but this has not changed anything.

Upvotes: 0

Views: 156

Answers (2)

ScaisEdge
ScaisEdge

Reputation: 133360

try using

  ?rel=0;&autoplay=1  

and be careful with a proper value for heigth

<iframe src="files/media/video/moped.webm??rel=0;&amp;autoplay=1&amp;loop=1&amp;
          title=0&amp;byline=0&amp;portrait=0" 
                width="400" height="722" frameborder="0" ></iframe>

Upvotes: 0

user7744592
user7744592

Reputation:

You can use the <video> element instead:

<video width="100%" height="100%" autoplay loop>
    <source src="files/media/video/moped.webm" type="video/webm" />
    Your browser does not support the video tag.
</video>

Upvotes: 1

Related Questions