Youtube Playlist (RSS Feed) and JW Player 6 (How?)

This thread may refer to an older version of JW Player! Check our articles for the most up-to-date information.
This Q&A thread was imported from our previous system and could apply to an older product.
  • Hi guys, having some issues with getting V6 to run videos from a youtube feed. Is it not still possible?

    bc.. <div id="myElement">Loading the player...</div>

    <script type="text/javascript">
    jwplayer("myElement").setup({
    height: 360,
    playlist: "http://gdata.youtube.com/feeds/api/playlists/lRSJJzp8RYU01F3C1s7d0tXl_ACwExBd",
    primary: "flash",
    width: 640
    });
    </script>



    Error message is "Failed to load Playlist etc..."

    Any support would be most welcome!!

    (BTW: Wizard Link not working? http://www.longtailvideo.com/support/jw-player-setup-wizard/)

  • I'm running in to the same problem...

    I'm getting a player window that says: Error loading playlist. Not a valid RSS feed.

    But http://gdata.youtube.com/feeds/api/playlists/BD57861AEF436283 is certainly a valid feed.

    Any ideas?

    Script below...

    Test page at: http://www.wwiifoundation.org/test2.html

    bc.. <script type="text/javascript">
    jwplayer('mediaplayer').setup({
    'flashplayer': '/jw-player/jwplayer.flash.swf',
    'id': 'playerID',
    'width': '650',
    'height': '240',
    'playlistfile': 'http://gdata.youtube.com/feeds/api/playlists/BD57861AEF436283',
    'playlist.position': 'right',
    'playlist.size': '250',
    'controlbar': 'over',
    'repeat': 'list'
    });
    </script>



    Up Down 0 rated
  • @KaKoRoT – Do you have a link? Wizard link works fine.

    @Patrick – You are using V5 variables here. See this guide – http://www.longtailvideo.com/support/jw-player/28834/migrating-from-jw5-to-jw6

     
    Up Down 0 rated
  • Thanks, Ethan. Was just about to post an update.

    I'm still having trouble, though. Getting the message that it is not a valid RSS feed.

    Please see page at: http://www.wwiifoundation.org/test4.html

    bc.. <html>
    <head>
    </head>
    <body>
    <script type="text/javascript" src="/jwplayer/jwplayer.js" ></script>
    <div id="myElement">Loading the player...</div>

    <script type="text/javascript">
    jwplayer("myElement").setup({
    playlist: "http://gdata.youtube.com/feeds/api/playlists/BD57861AEF436283?v=2",
    primary: "flash",
    volume: 80,
    width: 465,
    stretching: 'fill'
    });
    </script>
    </body>
    </html>

    Up Down 0 rated
  • Use this as the file – http://gdata.youtube.com/feeds/api/playlists/BD57861AEF436283?v=2&alt=rss

     
    Up Down 0 rated
  • Thanks, Ethan. Much appreciated...

    I didn't notice documentation anywhere to add the &alt=rss to the URL.

    Works just fine now. Thanks!

    Up Down 0 rated
  • aha!!! fantastic!!!!

    Sidenote:
    Please add this to your manual/documentation as I have to admit this is not something thats easy to figure out!

    nevertheless THANKS!!!

    Up Down 0 rated
  • Np guys!

     
    Up Down 0 rated
  • Ok, one more update.

    Good news is that I now have my site pulling a youtube playlist via JSON in script, and it appears to work on both Desktop and Android/iOS...

    ...but... the playlist listbar is not visible on mobile devices. Any ideas?

    http://www.wwiifoundation.org/test8.html

    bc.. <div id="myElement">Loading the player...</div>
    <script type="text/javascript">

    function jsonConverter(data) {
    var feed = data.feed;
    var entries = feed.entry || [];
    var listout = [];
    for (var i = 0; i < entries.length; i++) {
    var entry = entries[i];
    var title = entry.title.$t;
    var source = entry.content.src;
    listout.push({file: source, title: title});
    }

    jwplayer("myElement").setup({
    playlist: listout,
    listbar: {
    position: 'right',
    size: 360
    },
    volume: 80,
    width: 920,
    height: 420,
    stretching: 'fill'
    });

    };

    </script>
    <script type="text/javascript" src ="http://gdata.youtube.com/feeds/api/playlists/BD57861AEF436283?v=2&alt=json-in-script&callback=jsonConverter"></script>

    Up Down 0 rated
  • I’m afraid that this is an issue with the player + YouTube content + playlists on mobile devices at the moment. The entire player is just replaced by the default YouTube embedded player.

     
    Up Down 0 rated
  • Bummer. Do you know if this is slated to be fixed in a future release?

    It's just playlists with youtube content?



    Up Down 0 rated
  • Yes, we are planning on fixing this.

    Yes.

     
    Up Down 0 rated
  • Has this been fixed?

    Up Down 0 rated
  • Not yet…we still fail back to the YouTube embedded player on these devices (no playlist).

     
    Up Down 0 rated
  • Just tried it out and it seems this has not been fixed yet. In fact, on my iPod touch there is no way to watch past the first video either. The skip forward and back buttons that appear when watching the video don't work for me.

    Youtube's embedded player doesn't handle playlists well on iOS either, so I guess I'll have to write my own javascript playlist.

    Up Down 0 rated
  • Yes, this is what I said above. It isn’t fixed yet.

     
    Up Down 0 rated
  • Am I correct that it shouldn't be a problem to generate my own internal playlist in RSS form of youtube content?

    Also, is it possible to encrypt the playlist?

    Up Down 0 rated
  • That should be fine. What do you mean by encrypt it though?

     
    Up Down 0 rated
  • I am having some serious issues as well
    http://gdata.youtube.com/feeds/api/playlists/19A17A4FF0FEB5E9?v=2&alt=rss is a valid feed, yet I get the "Not valid rss feed message"
    Am I missing something?
    jwplayer("myElement").setup({
    playlist: "http://gdata.youtube.com/feeds/api/playlists/AL94UKMTqg-9Ats4KNgoFhH0jSTlxnnlqK?v=2&alt=rss",
    primary: "flash",
    volume: 80,
    width: 465,
    stretching: 'fill'
    });
    I am using jwplayer 6

    Up Down 0 rated
  • Link?

     
    Up Down 0 rated
  • It is on a local development, but I will make a temporary page for that
    http://www.block-solutions.net/component/content/article/240
    ps: love your avatar :) that cat is so cool

    Up Down 0 rated
  • :) Thanks

    Change:

    http://gdata.youtube.com/feeds/api/playlists/AL94UKMTqg-9Ats4KNgoFhH0jSTlxnnlqK?v=2&alt=rss

    To:

    http://gdata.youtube.com/feeds/api/playlists/AL94UKMTqg-9Ats4KNgoFhH0jSTlxnnlqK?alt=rss

     
    Up Down 0 rated
  • awesome, does it for me. I tried all sorts of variations to v2, v2 & rss but I don't think i tried only alt=rss
    Perhaps it should be in the doc, will save you a lot of hassle I think. Or perhaps I just didn't find it in the doc. either way, thank you :)

    Up Down 0 rated
  • NP! :)

     
    Up Down 0 rated
  • how can i make use of multtiple playlists on a player?

    Up Down 0 rated
  • We only support one playlist at a time.

     
    Up Down 0 rated
Want to join the discussion? Log In here to add a comment.

Still don't have JW Player? Get It Here