Example 7 - Enabling Playlist Skip Buttons for Ads

This example illustrates how to use the playlist skip buttons during ad playback to skip over an ad.

The configuration for this example is:


flowplayer("a.example", "", {
    playlist: [
       {
           url: "",
           scaling: "orig"
       },
       {
           url: "",
           provider: "rtmp",
           duration: 15
       },
       {
           url: "",
           duration: 20
       },
    ],
    
    plugins: {
        rtmp: {
            url: "",
            netConnectionUrl: ""
        },

        controls: {
            autoHide: "always",
            playlist: true
        },

        ova: {
            url: "",
            
            "playOnce": true,

            "player": {
               "controls": {
                   "linear": {
                       "enable": true
                   }
               }
            },
            
            "ads": {
              "servers": [
                   {
                      "type": "OpenX",
                      "apiAddress": "",
                      "allowAdRepetition": true,
                      "customProperties": {
                            "target": [ "category=food", "gender=male" ] 
                      }
                   }
              ],
              "schedule": [
                  {
                     "zone": "5",
                     "position": "pre-roll"
                  }
              ]
            },

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