but keep failing and i thought youtube restricts the function
well
it ends up to be my own mistake for getting the codes wrong >.<
To loop infinitely, it's loop=1, instead of the usual wmp loop=99 =.=
So a brief tutorial here, to autoplay and to loop youtube video/playlist...
Step 1:
- Locate specific video/playlist URL within embed code (bolded and underlined in examples below)
- Ignore extra codes behind the URL (if any), eg shown in Example 2
Step 2:
- To autostart, add: &autopstart=1
- To loop infinitely, add: &loop=1
- Additional codes to be added right after the specific URL (note Example 2), without any space, within the apostrophes.
Example 1:
Standard YT video embed code:
<iframe width="420" height="315" src="http://www.youtube.com/embed/cKmBQI4VASQ" frameborder="0" allowfullscreen></iframe>
Autoplay and loop added:
<iframe width="420" height="315" src="http://www.youtube.com/embed/cKmBQI4VASQ&autopstart=1&loop=1" frameborder="0" allowfullscreen></iframe>
Example 2:
Standard YT playlist embed code:
<iframe width="560" height="315" src="http://www.youtube.com/embed/videoseries?list=PL69BEEF3977D875C5&hl=en_US&hd=1" frameborder="0" allowfullscreen></iframe>
Autoplay and loop added:
<iframe width="560" height="315" src="http://www.youtube.com/embed/videoseries?list=PL69BEEF3977D875C5&autopstart=1&loop=1&hl=en_US&hd=1" frameborder="0" allowfullscreen></iframe>
Enjoy my autostarted and infinitely looped Xmas songs
MERRY JELLY CHRISTMAS ^^
No comments:
Post a Comment