Example 6-1 - Enabling Ad Call Tracking (Failover Tags)



The configuration for this example is:


flowplayer("a.example", "", {
    playlist: [
        {
            url: OVA_HTTP_SHOW_STREAM_1,
            duration: 30
        }
    ],

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

        ova: {
            url: "",

            "analytics": {
                "google": {
	                "custom": {
                        "accountId": "UA-10158120-1",
                        "adCalls": {
                            "enable": true,
                            "fired": "/ova-example/ad-calls/fired",
                            "complete": "/ova-example/ad-calls/complete",
                            "failover": "/ova-example/ad-calls/failover",
                            "error": "/ova-example/ad-calls/error",
                            "timeout": "/ova-example/ad-calls/timeout",
                            "deferred": "/ova-example/ad-calls/deferred"
                        }
                    }
                }
            },

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

            "ads": {
                "schedule": [
                    {
                       "position": "pre-roll",
                       "server": {
                           "type": "direct",
	                       "tag": "http://this-wont-work/ad-tag",
	                       "failoverServers": [
	                           {
	                               "type": "direct",
	                               "tag": ""
	                           }
	                       ]
                       }
                    }
                ]
            }
        }
    }
});