Example 1 - Duration-less stream with a pre-roll that does not have a VAST duration

This example illustrates the case where either a 0 or empty duration has been provided in the VAST response. In this case the value for the duration is picked up from the ad stream meta data. Notice in this case the "setDurationFromMetaData" config option is not required as a 0 ad duration will automatically force OVA to try to get the stream duration from the stream metadata.


The configuration for this example is:


flowplayer("a.example", "", {
    plugins: {
        controls: {
            autoHide: "always"
        },

        ova: {
            url: "",

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

            "shows": {
                "baseURL": "",
                "streams": [
                    { "file":"" }
                ]
            },

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