Using XSPF for Video Playlists.

I 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:

<?xml version="1.0" encoding="UTF-8"?>
<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>
This entry was posted in ActionScript 2, Video on the Web and tagged , , , . Bookmark the permalink.

2 Responses to Using XSPF for Video Playlists.

  1. Lucas Gonze says:

    Nicely done. It’s good to see the extension syntax used well.

    Feel free to email me or the XSPF list for input.

  2. Jonny says:

    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.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">