Example 4 - Scheduling ads with a Bits On The Run (BOTR) playlist

This example illustrates the delivery of ads over a bitrate switched stream running on Bits on the Run. In this instance, pre-roll, post-roll and overlay ads are served.

This will be replaced by the SWF.

The configuration for this example is:


<embed 
  id="ply"
  data=""
  src="" 
  width="450"
  height="300"
  allowscriptaccess="always"
  allowfullscreen="true"
  flashvars="plugins=&
             config=&
             playlist=none&
             repeat=list&
             autostart=false&
             dock=true&
             frontcolor=000000&
             title=Big%20Buck%20Bunny%20Trailer&
             image=http://content.bitsontherun.com/thumbs/nPripu9l-480.jpg&
             stretching=uniform&
             ping.script=http://content.bitsontherun.com/pings/&
             lightcolor=000000&
             controlbar=over&
             displayclick=play&
             backcolor=ffffff&
             file=http://content.bitsontherun.com/jwp/nPripu9l.xml&
             playlistsize=200"
/>

"" is defined as:


<config>
   <ova.title>
       Scheduling ads against a single stream
   </ova.title>
   <ova.json>
       {
           "blockUntilOriginalPlaylistLoaded": true,
           "autoPlay": false,

           "overlays": {
                "stagePaddingBottomWithControls": 5,
                "regions": [
                    {
                        "id": "bottom",
                        "verticalAlign": "bottom",
                        "horizontalAlign": "center",
                        "backgroundColor": "#000000",
                        "padding": "-10 -10 -10 -10",
                        "width": 450,
                        "height": 50
                    }
                ]
            },

            "ads": {
                "servers": [
                    {
                        "type": "OpenX",
                        "apiAddress": "OVA_OPENX_API"
                    }
                ],
                "notice": {
                	"textStyle": "smalltext",
                	"type": "countdown"
                },
                "schedule": [
                    {
                        "zone": "18",
                        "position": "pre-roll"
                    },
                    {
                        "zone": "30",
                        "position": "bottom",
                        "width": 450,
                        "height": 50,
                        "startTime": "00:00:05",
                        "duration": "15"
                    },
                    {
                        "zone": "18",
                        "position": "pre-roll"
                    }
                ]
            },

            "debug": {
                "debugger": "firebug",
                "levels": "OVA_DEBUG"
            }       
       }
   </ova.json>
</config>