The StreamOne Player Playlist is based on the XSPF format, which is an xml based playlist format. Because of specific requirements we extended the XSPF format with the S1-namespace, adding support for multiple labeled location, related content, social media sharing, logo overlay.

Part 1: Header

First, construct the XSPF headers and open the playlist node:

<?xml version="1.0" encoding="UTF-8"?>
   <playlist version="1" xmlns="" xmlns:s1="">

Part 2: trackList

After opening the <playlist> node, we open the trackList and add all playlist items (1 or more) to it. The player (both Flash and HTML5) will atomatically decide the best resolution based on the s1:height parameter. The s1:default attribute can override player default behavior:

      <title>Clip title</title>
      <annotation>Short description</annotation>
      <location s1:label="270p" s1:height="228"></location>
      <location s1:label="360p" s1:height="304"></location>
      <location s1:label="480p" s1:height="406" s1:default="1"></location>
      <location s1:label="720p" s1:height="608"></location>

After loading the track locations, you can add social sharing information about the track, within the extension node and the s1:sharing node:

<extension application="">
   <s1:sharing url="" thumbnail="">
      <s1:embedCode><![CDATA[<iframe width="640" height="360" src=";item=9hqngireCM&amp;player=&amp;width=640&amp;height=360" frameborder="0" allowfullscreen="allowfullscreen" mozallowfullscreen="mozallowfullscreen" webkitallowfullscreen="webkitallowfullscreen"></iframe>]]></s1:embedCode>

It’s also possible to load an overlay image (e.g. a logo) and specify it’s locatoin using the right/top/width/height attributes:

   right="2%" top="4%" width="10%" height="10%" maintainAspectRatio="1"

We’re done adding location, sharing and logo to this track, so we’ll close the extension and the track nodes that were still open in this example. Because we only have one track in this example, we’ll close the trackList too:


Part 4: Google IMA Plugin

The Google IMA Plugin should be loaded from within the <extensions> node in the XSPF Playlist. If there is information about related content, you’ll have to add the Google IMA plugin before or after the <s1:related> node:

<extension application="">

Part 5: The End

Finally, we end the <playlist> node: