autostart

8 views
Skip to first unread message

voceprof...@virgilio.it

unread,
Sep 17, 2016, 6:28:59 AM9/17/16
to html5...@googlegroups.com
Hi there!
 
I'm going to place inside my website the code for showing videos: 
<video src="video.mp4" poster="poster.jpg" width="320" height="200" controls preload></video>
My problem is that I need the video to start immediatly. How can I get the ''autostart'' function?
Thank you for your answer.
Nick
 

Dave Hall

unread,
Sep 26, 2016, 4:41:04 AM9/26/16
to html5...@googlegroups.com
Just add the "autoplay" attribute to your video tag:


<video src="foo.mp4" autoplay>
Reply all
Reply to author
Forward
0 new messages