How Do I Embed a Utube Playlist?

I've tried to embed playlists and always get the "Embed code appears to be Invalid" error.

The Utube page for my playlist:
http://www.youtube.com/playlist?list=PL854408FFE7149199
has a share button which I use to get the embed code--but the code gives an error.

I tried to fix the Dead video here:
http://videosift.com/video/Horizon-Global-Dimming
by just embedding the code from the first video in the playlist (accessed thru the playlist) and now it just plays the first video.

I've seen users do this so I know it's possible.

I'm only a Bronze--is this the problem? Also, I run Firefox 6.0.

Any help would be much appreciated.. Thank You.
geo321 says...

It looks like Youtube switched their playlist embeds to be iframe only. As VS as it stands now it doesn't look like we can embed playlists from youtube anymore. I've tried with no luck in the embed being accepted here.

marinara says...

yeah what geo said. To clarify, the youtube interface only does iframe embeds now. There has to be a workaround?

I'm really fed up with the youtube interface. It's like they put an idiot in charge of design, and a bigger idiot in charge of coding it.

radx says...

Without giving it much thought, I'd say use a template and insert your own playlist ID.

Template:

<object width="480" height="385"><param name="movie" value="http://www.youtube.com/p/$PLAYLIST_ID?version=3&hl=en_GB&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/p/$PLAYLIST_ID?version=3&hl=en_GB&fs=1" type="application/x-shockwave-flash" width="480" height="385" allowscriptaccess="always" allowfullscreen="true"></embed></object>

Now, replace $PLAYLIST_ID with a proper ... playlist ID. It's all the tokens following "PL" in the YouTube URL. So in your case: 854408FFE7149199

I just tried it on this old playlist of mine and it seems to work just fine.

Edit: I might as well post the code in question right now:

<object width="480" height="385"><param name="movie" value="http://www.youtube.com/p/854408FFE7149199?version=3&hl=en_GB&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/p/854408FFE7149199?version=3&hl=en_GB&fs=1" type="application/x-shockwave-flash" width="480" height="385" allowscriptaccess="always" allowfullscreen="true"></embed></object>

And test it right here:



Yay, it works.

Boise_Lib says...

Thanks for this^ @radx I have tried this.

I can embed this code into a comment (just did). But when I put the original embed--provided by Utube for this playlist--into the "Submit Video" box and hit Submit I still get the Invalid error.

I just tried placing your template into a submit box and siftbot appears to have been able to read it. I never tried submitting the object type before, I'll try this method next time.

Thanks again for your help.

radx says...

Have you tested the embed code I provided for that particular playlist? Works just fine, I tried it earlier.

<object width="480" height="385"><param name="movie" value="http://www.youtube.com/p/854408FFE7149199?version=3&hl=en_GB&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/p/854408FFE7149199?version=3&hl=en_GB&fs=1" type="application/x-shockwave-flash" width="480" height="385" allowscriptaccess="always" allowfullscreen="true"></embed></object>

Send this Article to a Friend



Separate multiple emails with a comma (,); limit 5 recipients






Your email has been sent successfully!

Manage this Video in Your Playlists

New Blog Posts from All Members