Example 5 - Updating a region using the Javascript API

This example illustrates how the styling of a region may be updated dynamically using the OAS Javascript setRegionStyle() API. A region called "updatable-region" has been declared in this example and you can use the text box below the player to dynamically change the styling of that region. We've made the region background light grey by default with a standard piece of text so to help illustrate how you can modify the region styling.




The configuration for this example is:


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

        ova: {
            url: "",

            "canFireAPICalls": true,

            "debug": {
                "levels": ""
            },

            "ads": {
                "pauseOnClickThrough": true,
                "servers": [
                   {
                       "type": "OpenX",
                       "apiAddress": ""
                   }
                ],
                "schedule": [
                    {
                       "zone": "5",
                       "position": "pre-roll"
                    }
                 ]
             }
         }
     }
});