Example 1 - Scheduling ads against a single stream (without a stream duration)

This example illustrates how to use the JW flashvar configuration to specify a show stream (without a duration specified) and have an OAS ad served against it. In this example a pre-roll ad is served along with a "click to play video" overlay 5 seconds into the show stream.

The configuration for this example is:




"" is defined as:


<config>
   <ova.title>
       Scheduling ads against a single stream
   </ova.title>
   <ova.json>
       {
           "autoPlay": false,

            "overlays": {
                "regions": [
                    {
                        "id": "bottom",
                        "verticalAlign": "bottom",
                        "horizontalAlign": "center",
                        "backgroundColor": "#000000",
                        "padding": "-10 -10 -10 -10",
                        "width": 450,
                        "height": 50
                    }
                ]
            },

            "ads": {
                "servers": [
                    {
                        "type": "OpenX",
                        "apiAddress": "http://openx.openvideoads.org/openx/www/delivery/fc.php"
                    }
                ],
                "notice": { "textStyle": "smalltext" },
                "schedule": [
                    {
                        "zone": "18",
                        "position": "pre-roll"
                    },
                    {
                        "zone": "33",
                        "position": "bottom",
                        "width": 450,
                        "height": 50,
                        "startTime": "00:00:05",
                        "duration": "15"
                    }
                ]
            },

            "debug": {
               "levels": "fatal, config, vast_template, vpaid, playlist, api, analytics, http_calls",
               "debugger": "firebug"
            }
        }
   </ova.json>
</config>