Example 4 - Only enable on ads with a minimum duration

In this example, the skip ad button will only be displayed if an ad duration is greater than or equal to 40 seconds.

The configuration for this example is:


flowplayer("a.example", "", {
    playlist: [
       {
           url: "",
           duration: 20
       },
    ],
    
    plugins: {
        ova: {
            url: "",
            
            "ads": {
              "skipAd": {
                  "enabled": true,
                  "minimumAdDuration": 40
              },
              "servers": [
                   {
                      "type": "OpenX",
                      "apiAddress": "",
                      "allowAdRepetition": true
                   }
              ],
              "schedule": [
                  {
                     "zone": "5",
                     "position": "pre-roll"
                  }
              ]
            },

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