Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Embed new youtube playlist


Hello,

Please help to embed this youtube playlist using Jwplayer
http://www.youtube.com/playlist?list=PLv51kyA8ztfQuv35sE2Q0MWMvnR73JimA

Previously, youtube playlist looks simple

http://www.youtube.com/playlist?list=PL53C4ED4C79D929A6

So just embed with the link below is ok

http://gdata.youtube.com/feeds/api/playlists/53C4ED4C79D929A6

Now, it seems to have changed.

42 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Use http://gdata.youtube.com/feeds/api/playlists/v51kyA8ztfQuv35sE2Q0MWMvnR73JimA has the file variable.

JW Player

User  
0 rated :

Thanks Ethan. It works...

Ethan Feldman

JW Player Support Agent  
0 rated :

Np

JW Player

User  
0 rated :

please post a full code source of embedding youtube playlist file for example this playlist: http://gdata.youtube.com/feeds/api/playlists/PL895D164BB097AA0F

Ethan Feldman

JW Player Support Agent  
0 rated :

Here you go:

<html>
<head>
<title>Test Page</title>
</head>
<body>
<script type="text/javascript" src="http://player.longtailvideo.com/jwplayer.js"></script>
<div id="player"></div>
<script type="text/javascript">
    jwplayer("player").setup({
            file: "http://gdata.youtube.com/feeds/api/playlists/PL895D164BB097AA0F",
            flashplayer: "http://player.longtailvideo.com/player.swf",
            volume: 80,
            width: 465,
            stretching: 'fill'
    });
</script>
</body>
</html>

JW Player

User  
0 rated :

This doesnt seem to work for me, it shows the player but when I press the play button it says: "Error loading youtube: Video ID is invalid".

Using JWplayer 6

JW Player

User  
0 rated :

never mind, seems you can't add unlisted video's to a playlist

Ethan Feldman

JW Player Support Agent  
0 rated :

Yes, that would do it.

JW Player

User  
0 rated :

Just remove the first two letters (*PL*) from the playlist ID.

This is false: PL895D164BB097AA0F

*This is true: 895D164BB097AA0F*

bc.. <script>
jwplayer("player").setup({
'flashplayer': 'jwplayer.swf',
'width': '560px',
'height': '315px',
'volume': '100',
'repeat': 'list',
'shuffle': 'true',
'autostart': 'false',
'controlbar': 'none',
'file': 'http://gdata.youtube.com/feeds/api/playlists/895D164BB097AA0F'
});
</script>

Ethan Feldman

JW Player Support Agent  
0 rated :

Yep, that does it.

JW Player

User  
0 rated :

i want JW Palayer so help me

Ethan Feldman

JW Player Support Agent  
0 rated :

Sure, download it from our site.

JW Player

User  
0 rated :

How can i get the below code to work in jw player 6? I used the setup wizard about a year ago to generate the code. Please help.

<script type='text/javascript' src='swfobject.js'></script> <div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'>
var so = new SWFObject('player.swf','mpl','620','365','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://gdata.youtube.com/feeds/base/videos?q=animal+biology&alt=rss&client=ytapi-youtube-search&v=2');
so.addVariable('plugins','fbit-1,yousearch-1,newsticker-1');
so.addVariable('playlist','right');so.addVariable('repeat','always');
so.addVariable('logo','logo-main-license.png');
so.addVariable('logo.hide','false');
so.addVariable('logo.position','bottom-left');
so.addVariable('logo.link','http://example.com/about_us.php');
so.addVariable('logo.linktarget','_blank');
so.addVariable('logo.margin','20');
so.addVariable('newsticker.text','Welcome back');
so.addVariable('autostart','true');
so.write('mediaspace');
</script>

Ethan Feldman

JW Player Support Agent  
0 rated :

You need to embed using jwplayer.js for jw6

http://www.longtailvideo.com/support/jw-player/28834/migrating-from-jw5-to-jw6

JW Player

User  
0 rated :

Thanks Ethan, you have always been helpful.

Can you be a little more specific, what do i need to change in the code to make it work. Also how can i make my 'yousearch' add-on work? If i am not taking too much of your time can you edit the code and paste the whole block? Thanks!

Ethan Feldman

JW Player Support Agent  
0 rated :

Addons do not work in JW6, they are now built in features. You should start from – http://www.longtailvideo.com/support/jw-player/28833/quick-start-guide

JW Player

User  
0 rated :

How to play all videos ?
At the moment, player play only one by one.

Ethan Feldman

JW Player Support Agent  
0 rated :

What do you mean?

JW Player

User  
0 rated :

Hello,

im getting an error while embedding a Playlist.

bc.. jwplayer("jw-video").setup({
"autostart": true,
"file": "http://gdata.youtube.com/feeds/api/playlists/895D164BB097AA0F",
"stretching": "fill"
});



Errormessage in player:

bc.. Playlist could not be loaded:
No playable Sources found



thanks

JW Player

User  
0 rated :

Sorry, forgot version:

bc.. jwplayer.version
>> "6.0.2813"

Ethan Feldman

JW Player Support Agent  
0 rated :

Change:

“stretching”: “fill”

To:

“stretching”: “fill”,
“primary”: “flash”

I would also update to 6.3

JW Player

User  
0 rated :

Thanks Ethan,

I've updated to the newest version ( 6.3.3242 )
But now I get the following error:

bc.. Playlist could not be loaded:
Not a valid RSS feed



I'm trying to embed this playlist, wich seems to be right:
http://gdata.youtube.com/feeds/api/playlists/PLBD4E6DEB9A0AD46C

My code

bc.. if ($(window).width() < $(window).height()) {
var w = $(window).width() * 0.7;
var h = w * (9 / 16);
} else {
var h = $(window).height() * 0.82;
var w = h * (16 / 9);
}
if ($(window).width() * 0.8 < w) {
var w = $(window).width() * 0.7;
var h = w * (9 / 16);
}
jwplayer("jw-video").setup({
"autostart": true,
"file": "http://gdata.youtube.com/feeds/api/playlists/PLBD4E6DEB9A0AD46C",
"stretching": "fill",
"width": w,
"height": h
});



Thanks 4 your help.

Ethan Feldman

JW Player Support Agent  
0 rated :

Actually this file – http://gdata.youtube.com/feeds/api/playlists/PLBD4E6DEB9A0AD46C

Should be:

http://gdata.youtube.com/feeds/api/playlists/BD4E6DEB9A0AD46C

And, file should be called playlist, if using JW6.

JW Player

User  
0 rated :

If you embed a YouTube video inside a JW Player (for re-skinning purposes) will the play counts increment on YouTube?

For example, like this:

http://www.longtailvideo.com/jw-player/wizard/#youtube

Basically, we want greater aesthetic control while retaining YouTube channel analytics.

JW Player

User  
0 rated :

Hey Ethan,

I found a solution.

It's working with this url "http://gdata.youtube.com/feeds/api/playlists/BD4E6DEB9A0AD46C?alt=rss"

So I just got to add "?alt=rss"

thanks anyway.

Ethan Feldman

JW Player Support Agent  
0 rated :

@AJ – Videos played through the YouTube API, which we use, will not count the original play count on YouTube.

@No playable Sources found – Glad you got it!

JW Player

User  
0 rated :

thanks bro for codes,

but its playing only one video of playlist, please help me in embedding playlist in my website with thumbnails

thanks once again

Ethan Feldman

JW Player Support Agent  
0 rated :

Ok, do you have an example?

JW Player

User  
0 rated :

hello.

auto next code??

thanks

Ethan Feldman

JW Player Support Agent  
0 rated :

What do you mean?

JW Player

User  
0 rated :

Hi,

Just jumping in here with a quick question!

I got everything to work (cloud) and account! COOL!

I set a playlist manual with youtube (I like to pick my own)

My new website is "responsive" and everything scale down to almost any size (pretty cool)... But when playwith and listbar is set...
No scaling and video will not play - it kind off the screen :-)
(See size 320 and the 960) it actually LOOKE AWSOME on our site!

Please advice

Here are some of the code:

listbar: { position: 'right', size: 320},
width: 960,
playlist: [{
file: 'http://youtu.be/yQavkmKnMto',
image: '../video/images/fitness-video1-big.jpg',
title: 'Herbalife sport video 1',
},{
image: '../video/images/fitness-video2-big.jpg',
file: 'http://youtu.be/QjqvmP3e8Co',
title: 'Big Buck Bunny Movie Trailer'
},{
image: '../video/images/fitness-video3-big.jpg',
file: 'http://youtu.be/QjqvmP3e8Co',
title: 'Ads Test video Big White Bunny '
}]
});

Peter

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have an example of where this is running? Please note, YouTube playlists are not yet supported on devices.

JW Player

User  
0 rated :

Heya Ethan thanks for the great support you are giving us.

Am I doing this right? I tried it with the top video in this list:
http://www.keitv.nl/6.1/

But it won't automatically jump to the next vid in the youtube playlist. I know there's allot of other video's listed in jwplayer but pleas ignore that it's about the top one. I want it to play the whole youtube playlist. Is that possible?

Ethan Feldman

JW Player Support Agent  
0 rated :

Under:

‘volume’: ‘60’,

Add:

‘repeat’: ‘list’,

JW Player

User  
0 rated :

ah ok that's useful to but not what I meant hmm I'll try and explain it better:

The top embedded video in this list is a youtubeplaylist:

{'file': 'http://gdata.youtube.com/feeds/api/playlists/YltqOMOZMOAnM-knbirkHrydpjcykciL',
'image': '',
'title': 'playlist',
description': '3-5-2013' ,},

but it will only play the first video in the "YOUTUBE" playlist. I'm not talking about the jwplayer playlist, Is there a way to have it play the entire youtube playlist that I embedded? am I doing something wrong here?

Ethan Feldman

JW Player Support Agent  
0 rated :

You would have to use that file as the player’s only file variable, to get this to work. Aka you can’t put a playlist in a playlist and then have them repeat automatically.

JW Player

User  
0 rated :

Ah perfect, yes that does it, thanks.

Ethan Feldman

JW Player Support Agent  
0 rated :

Np

JW Player

User  
-1 rated :

Hi - I have been looking for this code or a way to do this for a while to no avail. How do you enable SHUFFLE when embedding youtube playlist onto your website via iframe.... i'd prefer autostart as well, but i found that solution, SHUFFLE on i have not found any answers. can anyone please help?

phantomfireMedia@gmail.com

JW Player

User  
2 rated :

i wasnt talking about JW player just iframe embed youtube player, isnt there a "true" option in the coding to enable the shuffle or loop options, i know you can shuffle it in the big playlisted player on youtube where the cued videos are on the right side, is there a way to embed that big player?

JW Player

User  
1 rated :

hi sir,

pls, i use this bbcode for forum vBulletin 4.1.11 . i need use playlist audio for audio book ^^

bc.. <center><embed id="single2" name="single2" src="http://thptmytho.com/nct/ytbplayer.swf" width="560" height="700" bgcolor="#000000" allowscriptaccess="always" allowfullscreen="true" flashvars="file=http://thptmytho.com/nct/ytb.php?id={param}&playlist=bottom&backcolor=000000&frontcolor=FFFFFF&fullscreen=true&stretching=fill&autostart=false&lightcolor=FFFF00&logo=link logo"/></center>



But not work with my site because don't file
http://thptmytho.com/nct/ytbplayer.swf
file=http://thptmytho.com/nct/ytb.php?id=

i don't know coder pls hepl me.

you can guild me step by step

Best regards

Ethan Feldman

JW Player Support Agent  
0 rated :

@vi?t nam – I am not sure what you are asking?

@Dan – This is a forum for the JW Player only.

This question has received the maximum number of answers.