
Youtube XML Playlist Sample file
Anyone have a sample code file for me to modify with my own playlist from youtube channels? I have tried to make my own, but have been unsuccessful.
Help!!!
Anyone have a sample code file for me to modify with my own playlist from youtube channels? I have tried to make my own, but have been unsuccessful.
Help!!!
How do I get out of the crossdomain restrictions for youtube video's?
My host test page is
http://selvarajah.ipower.com/index_files/tt2.html
my playlist is at
http://selvarajah.ipower.com/index_files/youtubeplaylist.xml
The issue here is that you are trying to load YouTube playlists inside of a playlist.
You need to load a YouTube playlike like this:
<?xml version='1.0' encoding='UTF-8'?> <playlist version='1' xmlns='http://xspf.org/ns/0/'> <trackList>
<track> <location>http://www.youtube.com/watch?v=yMpQlXZz4VA</location> <image>images/nice-player-icon.png</image> </track>
<track>
<location>http://www.youtube.com/watch?v=nTasT5h0LEg</location> <image>images/nice-player-icon.png</image> </track>
<track> <location>http://www.youtube.com/watch?v=JZAHl5_LTGQ</location> <image>images/nice-player-icon.png</image> </track>
<track> <location>http://www.youtube.com/watch?v=USXJrvIugEo</location> <image>images/nice-player-icon.png</image> </track>
<track> <location>http://www.youtube.com/watch?v=SUNmLuNdiL8</location> <image>images/nice-player-icon.png</image>
</track>
<track> <location>http://www.youtube.com/watch?v=Wvo-g_JvURI</location> <image>images/nice-player-icon.png</image> </track>
<track> <location>http://www.youtube.com/watch?v=GhSTvPtBkMw</location>
<image>images/nice-player-icon.png</image> </track>
<track> <location>http://www.youtube.com/watch?v=H6vAts9Udpk</location> <image>images/nice-player-icon.png</image> </track>
<track>
<location>http://www.youtube.com/watch?v=MmJh5eqJMK0</location> <image>images/nice-player-icon.png</image> </track>
<track> <location>http://www.youtube.com/watch?v=Wvo-g_JvURI</location> <image>images/nice-player-icon.png</image> </track>
</trackList>
</playlist>
this will load playlist into a playlist?
No. This is just a playlist of YouTube files.
When you are loading YouTube playlists, you need to load them using the API.
More information – http://code.google.com/apis/youtube/2.0/developers_guide_protocol.html
This is a sample way to load a playlist – http://gdata.youtube.com/feeds/api/playlists/17C878C26C4A6384