Example 3 - Identifying Ads in the Playlist with Javascript

This example illustrates how you can identify the ad clips in the playlist via the Flowplayer Javascript API. This example loads up the show clips from an RSS based playlist. As each clip in the playlist plays, you can see the title and description for the clip at the bottom of the player. Additional information such as the ad position, zone ID and AD ID are listed for ad clips.

The RSS playlist file that is loaded by this example can be found here.


${title}
${description}


The configuration for this example is:


flowplayer("a.example", "", {
    playlist: "",  

    plugins: {
        controls: {
            autoHide: "always"
        },

        ova: {
            url: "",

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

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