Example 12 - Supporting Fallback Companions from VAST Wrappers

This example illustrates how to add additional parameters to the OBJECT/EMBED tags used to display a SWF companion on the page.

The configuration for this example is:


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

        ova: {
            url: "",

            "shows": {
                "baseURL": "",
                "streams": [
                    { "file":"", "duration":"00:00:20" }
                ]
            },

            "ads": {
               "companions": {
                   "regions": [
                      {
                         "id": "companion",
                         "width": 300,
                         "height": 250
                      }
                   ]
               },
               "schedule": [
                   {
                      "position": "pre-roll",
                      "tag": "../../dist/templates/wrapper/vast2-wrapper-companion-fallback.xml"
                   }
               ]
            },

            "debug": {
                "levels": ""
            }
        }
    }
});