Flowplayer Open Ad Streamer - Worked Examples
Zone Definitions
Unless stated, the worked examples assume that a series of "zones" have been defined in the OpenX server as follows.
Where other ad servers are illustrated (e.g. AdTech and the XML wrapper examples), those examples assume a specific
set of ad requests have been appropriately pre-configured.
The HTTP zones are configured to serve HTTP "progressive download" linear ads via our Apache install.
OpenX configured Linear: Pre, Mid and Post-Roll Videos
- zone '1': RTMP MP4 Linear Video
- zone '4': RTMP MP4 Linear Video with Companion Ad
- zone '5': HTTP Progressive MP4 Linear Video
- zone '6': HTTP Progressive MP4 Linear Video with Companion Ad
- zone '19': HTTP Pseudo-Streaming MP4 Linear Video with Companion Ad
- zone '13': RTMP FLV Linear Video
- zone '16': HTTP Progressive FLV Linear Video
- zone '14': RTMP MP4 Linear Video with 'Click to Website'
- zone '17': HTTP MP4 Linear Video with 'Click to Website'
- zone '15': Mixed of HTTP and RTMP MP4 Linear Video
OpenX configured Non-Linear: Overlays
- zone '28': Overlay - 450x50 Image 'click to website' overlays
- zone '33': Overlay - 450x50 Image 'click to play HTTP MP4 video'
- zone '37': Overlay - 450x50 Image 'click to play RTMP MP4 video'
- zone '41': Overlay - 450x50 Image 'click to play ANY MP4 video'
- zone '29': Overlay - 450x50 Text 'click to website'
- zone '35': Overlay - 450x50 Text 'click to play HTTP MP4 video'
- zone '39': Overlay - 450x50 Text 'click to play RTMP MP4 video'
- zone '43': Overlay - 450x50 Text 'click to play ANY MP4 video'
- zone '30': Overlay - 450x50 SWF 'click to website'
- zone '34': Overlay - 450x50 SWF 'click to play HTTP MP4 video'
- zone '38': Overlay - 450x50 SWF 'click to play RTMP MP4 video'
- zone '42': Overlay - 450x50 SWF 'click to play ANY MP4 video'
- zone '31': Overlay - 450x50 HTML 'click to website' overlays
- zone '32': Overlay - 450x50 HTML 'click to play HTTP MP4 video'
- zone '36': Overlay - 450x50 HTML 'click to play RTMP MP4 video'
- zone '40': Overlay - 450x50 HTML 'click to play ANY MP4 video'
- zone '44': Overlay - 450x50 Mixed (html, text, image, swf, click to web and rtmp/http video)
The Examples
Configuring Different Ad Types
Example 01: A pre-roll ad only (RTMP, HTTP)
Example 02: A pre-roll ad and a show stream (RTMP, HTTP)
Example 03: A pre-roll and a show stream with a "click to start video" overlay (RTMP, HTTP)
Example 04: A pre-roll ad, 2 show streams with a post-roll ad after each show stream (RTMP, HTTP)
Example 05: A pre-roll, mid-roll (15 seconds in) and post roll ad, 1 show stream (RTMP, HTTP)
Example 07: A pre-roll ad with a companion banner, single show stream (RTMP, HTTP)
Example 16: Overlay with 'click to website' (RTMP, HTTP)
Example 31: Delivering Text Overlay Ads (ALL)
Example 32: Delivering Image Overlay Ads (including animated GIFs) (ALL)
Example 33: Delivering Flash (SWF) Overlay Ads (ALL)
Example 34: Delivering HTML Overlay Ads (ALL)
Example 18: Click on a linear ad to go to the advertiser website (RTMP, HTTP)
Configuring Ad Notice Messaging
Example 08: "This is an advert" messaging (RTMP, HTTP)
Example 28: Turning off the ad notice (ALL)
Example 29: Modifying the Linear Ad Clickthrough Message (ALL)
Protocols, Providers and File Types
Example 10: A mixed RTMP and HTTP playlist (ALL)
Example 22: Specifying a new Flowplayer RTMP provider (RTMP)
Example 39: Supporting HTTP pseudo-streaming (ALL)
Example 12: Stream selection based on mime-type - FLV or MP4 (RTMP, HTTP)
Example 41: Delivering mixed file types (FLV and MP4) (ALL)
Example 15: Selection of media based on bit-rate (RTMP, HTTP)
Customising Ad Delivery
Example 13: Repeating ad positions (RTMP, HTTP)
Example 17: Play ads only once (RTMP, HTTP)
Example 20: Targetted Ad Delivery (RTMP, HTTP)
Example 42: Selective application of ad slots (ALL)
Example 58: Forcing ad impression serving on empty VAST ad responses (ALL)
Customising Overlay Display
Example 19: Illustrating overlay alignment (ALL)
Example 35: Delivering Mixed Overlay Ad Types (Text, Image, SWF and HTML) (ALL)
Example 36: User Defined Overlay Ad Templates (Text, Image, SWF and HTML) (ALL)
Example 37: User Defined Overlay Regions (ALL)
Example 38: Keep overlay visible after click (ALL)
Example 54: Supporting dynamic overlay display sizing (ALL)
Using Flowplayer Playlists
Example 43: Integrating with Flowplayer Playlists (ALL)
Example 44: Supporting Flowplayer Custom Clip Properties (ALL)
Example 46: Placing an image before the ad and show streams (ALL)
AdTech Ad Server Integration
Example 47: Delivering ads from an AdTech Ad Server - Minimal Configuration (ALL)
Example 52: Delivering ads from an AdTech Ad Server via Direct Requests per Ad Slot (ALL)
Example 53: Delivering ads from an AdTech Ad Server - Overriding the Request Template (ALL)
XML Wrapper Examples
Example 45: Chaining ad server requests using the VAST XML Wrapper (ALL)
Example 51: AdTech call returning XML Wrapper to OpenX (ALL)
Integrating Multiple Ad Servers
Example 48: Mixing Ad Servers across an Ad Schedule (ALL)
Example 49: Forcing Ad Server calls to be limited to one per ad slot (ALL)
The Javascript API
Example 54: Modifying the style of a region via the Javascript API (IN DEVELOPMENT)
Example 55: Obtaining the VAST template data via the Javascript API (IN DEVELOPMENT)
Example 56: Processing Ad Event callbacks via the Javascript API (ALL)
SmartAd Server Integration
Example 50: Delivering ads from a SmartAd Server (ALL)
Special Test Cases
Example 26: Test for empty VAST template response (ALL)
Example 27: Test for bad VAST Ad Server Response (ALL)