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)

Loading the player ...

The configuration for this example is:


<script type="text/javascript">jwplayer("container").setup({
       flashplayer: "", 
       file: "http://streaming.openvideoads.org:81/shows/the-black-hole.mp4",
       image: "http://static.openvideoads.org/shows/the-black-hole-thumbnail.png",
       duration: 40,
       'controlbar.position': 'bottom',
       plugins: {
           "../../../../dist/swf/ova-jw.swf": { 
              "debug": {
                  "levels": "fatal, config, vast_template, vpaid, http_calls, playlist, api"
              },

              "ads": {
                 "overlays": {
                     "regions": {
                        "preferred": "html5",
                        "flash": [
                           {
                              "region": "auto:bottom",
                              "enable": true
                           }
                        ],
                        "html5": [
                           {
                              "region": "bottom",
                              "enable": true,
                              "overlay": false
                           }
                        ]
                     }
                 },
                 "schedule": [
                     {   
                        "startTime": "00:00:03",
                        "duration": 10,
                        "tag": "http://openx.openvideoads.org/openx/www/delivery/fc.php?
                                script=bannerTypeHtml:vastInlineBannerTypeHtml:vastInlineHtml&
                                zones=overlay:0.0-0%3D28&nz=1&source=&r=R0.6574848522432148&
                                block=0&format=vast&charset=UTF-8"
                     },
                     {   
                        "startTime": "00:00:15",
                        "duration": 40,
                        "tag": "http://www.adotube.com/kernel/vast/vast.php?omlSource=http:
                                //www.adotube.com/php/services/player/OMLService.php?avpid=pctozxH&
                                ad_type=overlays&platform_version=vast20as3&vpaid=1&rtb=0&
                                publisher=adotube.com&title=[VIDEO_TITLE]&tags=
                                [VIDEO_TAGS]&description=[VIDEO_DESCRIPTION]&videoURL=[VIDEO_FILE_URL]"
                     }
                 ]
              }
           }
       },
       height: 300,
       width: 450
});
</script>