I am trying to get a basic Youtube video to auto play and auto loop embedded on a page, but I'm having no luck.
<div style="text-align: center; margin: auto"><object type="application/x-shockwave-flash" style="width:1120px; height:630px;" data="http://www.youtube.com/v/GRonxog5mbw?rel=0&loop=1&autoplay=1&showsearch=0&version=3&showinfo=0&modestbranding=1&fs=1">
<param name="movie" value="http://www.youtube.com/v/GRonxog5mbw?rel=0&loop=1&autoplay=1&showsearch=0&version=3&showinfo=0&modestbranding=1&fs=1" />
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" />
</object></div>
Playlist hack didn't work for me either. Working workaround for September 2018 (bonus: set width and height by CSS for
#yt-wrap
instead of hard-coding it in JS):Here is the full list of YouTube embedded player parameters.
Relevant info:
Use the URL above in your embed code (append other parameters too).
Had same experience, however what did the magic for me is not to change embed to v.
So the code will look like this...
Hope it helps...
YouTubes HTML5 embed code:
You can read about it here: ... (EDIT Link died.) ... View original content on Internet Archive project.
http://web.archive.org/web/20121016180134/http://brianwong.com/blog/2012-youtube-embed-code-autoplay-on-and-all-other-parameters/
All of the answers didn't work for me, I checked the playlist URL and seen that playlist parameter changed to list! So it should be:
So here is the full code I use make a clean, looping, autoplay video: