Example 1 - Setting Flash (by default) as the preferred display mode

In this example, an image overlay is shown for 10 seconds via the Flash display mode (default preferred) and then when an iFrame overlay is provided at 15 seconds, it is shown in HTML5 mode given that it has been enabled (and cannot be shown in Flash mode)

The configuration for this example is:


flowplayer("a.example", { src: "", wmode: "opaque" }, {
    playlist: [
       {
           url: "",
           duration: 40
       }
    ],
    plugins: {
        controls: {
            autoHide: "always"
        },

        ova: {
            url: "",

            "ads": {
                "overlays": {
                   "regions": {
                       "html5": [
                           {
                              "enable": true,
                              "overlay": false
                           }
                       ]
                   }
                },
                "schedule": [
                  {   
                      "zone": "28",
                      "startTime": "00:00:03",
                      "duration": 10,
                      "tag": "http://openx.openvideoads.org/openx/www/delivery/fc.php?
                              script=bannerTypeHtml:vastInlineBannerTypeHtml:vastInlineHtml
                              __amp__zones=overlay:0.0-0%3D28__amp__nz=1__amp__source=
                              __amp__r=R0.6574848522432148__amp__block=0__amp__format=vast
                              __amp__charset=UTF-8"
                  },
                  {   
                      "zone": "28",
                      "startTime": "00:00:15",
                      "duration": 10,
                      "tag": "../../../dist/templates/overlays/vast2-iframe.xml"
                  }
                ]
            },

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