+ 1
How to play an embedded object(video, audio etc.) Automatically when the user opens the web page?
4 odpowiedzi
+ 4
Hello, Bithi D !
For automatic playback, the "autoplay" attribute will help you. With this attribute, the videe/audio automatically starts after the page is loaded. The autoplay attribute overrides the preload action.
Syntax
<video autoplay="autoplay"> </video>
<audio autoplay="autoplay"> </audio>
The value is autoplay, and you can not specify any value at all.
By default, this attribute is disabled. Also by default the browser blocks autoplay, but you can disable this option in the browser settings
+ 2
Autoplaying audios and videos, are some of the quickest ways to make sure users DON'T visit your websites .
Most modern browsers have disabled the "autoplay" attribute
+ 1
Just do this <video autoplay>
0
thank you