I am trying to embed a list of YouTube videos into a website. The videos don't belong to a particular playlist as such. Random videos will need to be played one after other.
According to this article this is possible with the playlist property:
playlist (supported players: AS3, HTML5)
Value is a comma-separated list of video IDs to play. If you specify a value, the first video that plays will be the VIDEO_ID specified in the URL path, and the videos specified in the playlist parameter will play thereafter.
However my code doesn't seem to work. Here's what I've tried
<iframe id="ytplayer" type="text/html" width="640" height="390" src="http://www.youtube.com/playlist?playlist=PHi4tFz-F0g,HcKrd3K8_A,9fAZIQ-vpdw" frameborder="0" /><iframe id="ytplayer" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/PHi4tFz-F0g?autoplay=1&playlist=PHi4tFz-F0g,HcKrd3K8_A,9fAZIQ-vpdw" frameborder="0" />I tried putting the video ids list (PHi4tFz-F0g,HcKrd3K8_A,9fAZIQ-vpdw) at the demo page here, but it doesn't work.