Example 3 - Supporting SMIL Playlists

This example illustrates how SMIL playlists can be configured and used with the OVA Open Ad Streamer. The show streams are specified via a SMIL file that is configured explicitly using the show stream "file" and "type" parameters.


The configuration for this example is:


flowplayer("a.example", "", {
    plugins: {
        rtmp: {
            url: ""
        },

        controls: {
            autoHide: "always"
        },

        ova: {
            url: "",

            "debug": {
                "levels": ""
            },

            "shows": {
                "streams": [ 
              	   { 
                        "file": "../../../dist/templates/playlists/example-playlist.smil",
                        "type": "smil",
                        "duration":"00:00:10",
                        "customProperties": {
                            "title": "MP4 Example Stream",
                            "description": "SMIL derived stream"
                        } 
              	   }
              	]
            },

            "ads": {
                "pauseOnClickThrough": true,
                "servers": [
                   {
                       "type": "OpenX",
                       "apiAddress": ""
                   }
                ],
                "schedule": [
                    {
                       "zone": "5",
                       "position": "pre-roll"
                    }
                 ]
             }
         }
     }
});