Example 10 - VPAID Tracking



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",
                        "vpaid": {
                            "enable": true,
                            "loaded": "/ova-example/vpaid/loaded",
                            "started": "/ova-example/vpaid/started",
                            "complete": "/ova-example/vpaid/complete",
                            "stopped": "/ova-example/vpaid/stopped",
                            "linearChange": "/ova-example/vpaid/linearChange",
                            "expandedChange": "/ova-example/vpaid/expandedChange",
                            "remainingTimeChange": "/ova-example/vpaid/remainingTimeChange",
                            "volumeChange": "/ova-example/vpaid/volumeChange",
                            "videoStart": "/ova-example/vpaid/videoStart",
                            "videoFirstQuartile": "/ova-example/vpaid/videoFirstQuartile",
                            "videoMidpoint": "/ova-example/vpaid/videoMidpoint",
                            "videoThirdQuartile": "/ova-example/vpaid/videoThirdQuartile",
                            "videoComplete": "/ova-example/vpaid/videoComplete",
                            "userAcceptInvitation": "/ova-example/vpaid/userAcceptInvitation",
                            "userClose": "/ova-example/vpaid/userClose",
                            "paused": "/ova-example/vpaid/paused",
                            "playing": "/ova-example/vpaid/playing",
                            "error": "/ova-example/vpaid/error"
                        }
                    }
                }
            },

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

            "ads": {
                "schedule": [
                    {
                       "position": "pre-roll",
                        "tag": "http://www.adotube.com/kernel/..videoURL=[VIDEO_FILE_URL]"
                    }
                ]
            }
        }
    }
});