Example 6 - Timing out then failing over



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,
                       "failoverServers": [
                           {
                               "type": "AdTech",
                               "tag": "http://adserver.adtech.de/?adrawdata/3.0/990.1/2366662/0/
                                       1725/noperf=1;cc=2;header=yes;cookie=yes;adct=204;alias=;
                                       key=key1+key2;;=;grp=[group];misc=__random-number__",
                               "timeoutInSeconds": 5
                           }			                   
                       ]
                   }
                ],
                "schedule": [
                    {
                       "zone": "5",
                       "position": "pre-roll"
                    }
                 ]
             }
         }
     }
});