Example 4 - Specifying a Timeout Value for Ad Calls



The configuration for this example is:


function onVASTLoadTimeout(error) {
	console.log("JAVASCRIPT CALLBACK: Ad call has timed out");
}

flowplayer("a.example", "", {
    playlist: [
       {
           url: "",
           scaling: "orig"
       },
       {
           url: "",
           duration: 20
       }
    ],

    plugins: {
        controls: {
            autoHide: "always"
        },

        ova: {
            url: "",

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

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