Because Youtube has chosen using an iFrame I am confident this test will succeed. That is, whatever in the embedded playlist will work like a playlist just as if you play the Youtube playlist in Youtube's website itself.
Test the embedded playlist below. Listen beyond the first video and confirm that the second and the rest of the videos will continue playing. Here goes:
The codes useed is:
<iframe width="420" height="315" src="http://www.youtube.com/embed/bv_cEeDlop0" frameborder="0" allowfullscreen></iframe>
Nope, it didn't work. Looks like I had been overconfident. If you need to embed a playlist, go visit How To Create YouTube Playlists And Get Embed Code. Apparently it also involves some passwords. However, I did not test it as Youtube keeps changing and what works today may not work tomorrow.
Showing posts with label Youtube. Show all posts
Showing posts with label Youtube. Show all posts
Sunday, December 04, 2011
Friday, February 04, 2011
Test embed Youtube video autoplay
So if the above plays automatically when you land on this page means test successful. So to make an embedded Youtube video autoplay, all you need to do is to add at the end of the Youtube URL &autoplay=1 and it will play automatically.
The above video was taken at Damansara Uptown: OVO live bistro
The original Youtube embed code:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/BVa_3jn8XYY?hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/BVa_3jn8XYY?hl=en&fs=1&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
The modified Youtube embed code to make it autoplay with the added &autoplay=1 highlighted in red:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/BVa_3jn8XYY?hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/BVa_3jn8XYY?hl=en&fs=1&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
And to further make it loop endlessly, just append &loop=1 at the end thus the code become:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/BVa_3jn8XYY?hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/BVa_3jn8XYY?hl=en&fs=1&autoplay=1&loop=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
Tuesday, January 11, 2011
Thursday, February 04, 2010
Test Youtube iFrame embed autoplay & loop
The video above autoplay but will not loop.
Original iFrame embed code from Youtube:
<iframe width="425" height="344" src="http://www.youtube.com/embed/lniVx_pFM_A?fs=1" frameborder="0" allowFullScreen=""></iframe>
Youtube iFrame embed code edited to autoplay and loop:
<iframe width="425" height="344" src="http://www.youtube.com/embed/lniVx_pFM_A?fs=1&autoplay=1&loop=1" frameborder="0" allowFullScreen=""></iframe>
Subscribe to:
Posts (Atom)