Example 14 - A Non-Scaled Pre-Roll Linear Interactive Ad

This example illustrates how a non-scaled linear interactive ad will appear in the player. To achieve this, the VAST template is returning "maintainAspectRatio=true scalable=false" within the MediaFile tag. These settings result in the Flowplayer clip.scaling property being set to 'orig'. Note the use of the "enforceLinearInteractiveScaling:true" config option to turn this on.



The configuration for this example is:


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

        ova: {
            url: "",

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

            "ads": {
                "notice": { "show": false },
                "servers": [
                   {
                       "type": "direct",
                       "apiAddress": ""
                   }
                ],
                "schedule": [
                    {
                       "zone": "5",
                       "position": "pre-roll"
                    }
                 ]
             }
         }
     }
});