Example 3 - Setting HTML5 as the preferred display mode

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

The configuration for this example is:


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

        ova: {
            url: "",

            "ads": {
                "schedule": [
                   {   
                      "startTime": "00:00:03",
                      "duration": 10,
                      "regions": {
                         "preferred": "html5",
                         "flash": [
                             {
                                "region": "auto:bottom",
                                "enable": true
                             }
                         ],
                         "html5": [
                             {
                                "region": "bottom",
                                "enable": true,
                                "overlay": false
                             }
                         ]
                      },
                      "tag": "http://www.adotube.com/kernel/vast/vast.php?omlSource=http:
                              //www.adotube.com/php/services/player/OMLService.php?avpid=pctozxH
                              __amp__ad_type=overlays__amp__platform_version=vast20as3__amp__vpaid=1
                              __amp__rtb=0__amp__publisher=adotube.com__amp__title=[VIDEO_TITLE]
                              __amp__tags=[VIDEO_TAGS]__amp__description=[VIDEO_DESCRIPTION]
                              __amp__videoURL=[VIDEO_FILE_URL]"
                   },
                   {   
                      "startTime": "00:00:15",
                      "duration": 40,
                      "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"
                   }
                ]
            },

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