Example 2 - Supporting Custom Player Properties

This example illustrates how custom player properties may be defined using the "playerProperties" configuration grouping so that they are added to each clip as the Open Ad Streamer configures the clip for the stream. Custom properties may also be defined at a specific stream/ad slot level as illustrated in this example.

The configuration for this example is:


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

        ova: {
            "url": "",
 
            "player": {
                "metaData": false,
                "scaling": "orig"
            },
            
            "shows": {
                "baseURL": "",
                "streams": [
                    {  
                        "file":"", 
                        "duration":"00:00:20",
                        "player": {
                            "autoBuffering": true,
                            "metaData": false,
                            "scaling": "fit",
                            "bufferLength": 10	
                        }
                    }                    
                ]
            },
            
            "ads": {
              "servers": [
                   {
                      "type": "OpenX",
                      "apiAddress": ""
                   }
              ],
              "schedule": [
                  {
                    "zone": "5",
                    "position": "pre-roll",
                    "player": {
                       "metaData": false,
                       "autoBuffering": true,
                       "fadeInSpeed": 4000,
                       "fadeOutSpeed": 4000,
                       "bufferLength": 10,
                       "scaling": "half"
                    }
                  }
              ]
            },

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