Using XSPF for Video Playlists.
7th February, 2008 – 5:36 pmI am working to implement the XSPF Playlist standard for CNET Networks UK Video Players (with the hope that it could one day move to other countries). XSPF describes itself as being an XML based playlist format for digital media and is sponsored by the Xiph.Org Foundation.
I have been trying to keep the implementation as close to the vanilla XSPF Version 1.0 schema as possible and keeping all CNET Specific data in <meta> and <extension> enclosures with accurate rel URIs. I am going to spend the next few working days attempting to implement this template into the next version of the CNET Networks UK Player and creating the parent script which will generate them from our CMS.
For those that are interested my current XSPF schema follows:
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<title></title>
<creator></creator>
<date></date>
<extension application="http://www.cnetnetworks.co.uk/xspf/reccomendations/1/0/">
<cnet:reccomendation>
<cnet:title></cnet:title>
<cnet:image></cnet:image>
<cnet:info></cnet:info>
<cnet:annotation></cnet:annotation>
</cnet:reccomendation>
</extension>
<trackList>
<track>
<location></location>
<title></title>
<creator></creator>
<annotation></annotation>
<info></info>
<image></image>
<duration>1</duration>
<meta rel="http://www.cnetnetworks.co.uk/xspf/product_id/1/0/"></meta>
<meta rel="http://www.cnetnetworks.co.uk/xspf/is_ad/1/0/"></meta>
<meta rel="http://www.cnetnetworks.co.uk/xspf/alternative_audio/1/0/"></meta>
<meta rel="http://www.cnetnetworks.co.uk/xspf/captions_file/1/0/"></meta>
<extension application="http://www.cnetnetworks.co.uk/xspf/chapters/1/0/">
<cnet:chapter>
<cnet:title></cnet:title>
<cnet:image></cnet:image>
<cnet:annotation></cnet:annotation>
<cnet:position></cnet:position>
</cnet:chapter>
</extension>
</track>
</trackList>
</playlist>
2 Responses to “Using XSPF for Video Playlists.”
Nicely done. It’s good to see the extension syntax used well.
Feel free to email me or the XSPF list for input.
By Lucas Gonze on Feb 23, 2008
Thanks Lucas, I have been watching the XSPF Mailing List for the last few weeks and plan to post when I have a public tech demo ready for the new player.
By Jonny on Feb 23, 2008