
Youtube playlist
I am trying to embed the latest player onto my site. I was able to use off the example code that comes in the readme, get a single youtube video to play with the basic width height and volume playing and I was also able to get the skin to work. But what I am wondering is if there are any working example codes of a youtube playlist working.
I looked through this site thus far and nothing I found worked. I know there have been a few responses of creating my own playlist. That is not what I am looking for. I am looking for something that will work off of a playlist from youtube,
Example of a random playlist:
https://www.youtube.com/playlist?list=LLShPX44-EC3HtvKohu3Ws4A
or
http://gdata.youtube.com/feeds/api/playlists/LLShPX44-EC3HtvKohu3Ws4A
with or without the ?alt=rss, (that I saw in one of the post to use).
Also, what I am trying to do is have the playlist of the videos to show under the player or off to the side. Preferably under. I was able to do this with an older version of the JW Player, but this new version, I just can't seem to work with a playlist.
Any examples that I can go off and references on various codes to acquire the look I am going for would be greatly appreciated.
Here is an example of what is NOT working.
echo "<center><div align='center' id='myElement'>This text will be replaced</div></center>";
echo "<script>
jwplayer('myElement').setup({
playlist: 'http://gdata.youtube.com/feeds/api/playlists/yseojFCSl7Wni7zaNkdcOXY2OLvC3xLF?alt=rss',
primary: 'flash',
skin: './jw_player/six.xml',
stretching: 'fill',
width: 560px,
height: 315px,
volume: 100,
repeat: 'list',
shuffle: 'true',
autostart: 'false'
});
</script>";
I have tried both file: and playlist: and did not work. All that shows is "This text will be replaced".
Yes, it is within a php file and that is the reason for the echo. I also know <center> is deprecated and I should use CSS instead, but unfortunately, CSS was not centering it. I even tried wrapping it in a span and using a inline style for text align, just did not want to center, just stay to the left. I figured I would battle one beast at a time, once working, try to get the CSS issue resolved.
Thanks.