Wednesday, May 2, 2012

[YouTube-API] create playlist with a list of video

Hello. 

I would like to create a playlist. I've an array with the youtube id of my videos. 

I do this but doesn't working : 

function loadPlaylist(tabPlaylist)
{
player.cuePlaylist({
    list:tabPlaylist,
            listType:'playlist',
            index:0,
            startSeconds:0,
            suggestedQuality:'medium'
            
});
player.loadPlaylist();
console.log(player.getPlaylist()); // NOTHING ! 
}

------------------
 tabPlaylist is an array ( ["l8MjTAXW7Fw", "fTa3fj8O_M4"] ) 

Is it right??!! 

Thank you :-) 

Cheeeze

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/AFQxGszS3pgJ.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment