Changes between Version 70 and Version 71 of OvaRCNotes-011211-3
- Timestamp:
- 03/08/11 18:24:22 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OvaRCNotes-011211-3
v70 v71 114 114 For a detailed account of the VPAID API as defined by the IAB, please refer to the [http://www.iab.net/vpaid VPAID specification]. 115 115 116 === 4.1 Enabling VPAID for OVA for JW Player 5 === 116 === 4.1 Enabling VPAID for OVA for Flowplayer === 117 118 VPAID ads will be played by default with OVA for Flowplayer. No specific configuration is required. 119 120 To see an example VPAID linear ad in action with Flowplayer, click [http://static.openvideoads.org/qa/rc3-8/ova.flowplayer/examples/vpaid here]. 121 122 ==== 4.1.1 VPAID and Flowplayer 3.2.6 Control Bars ==== 123 124 The standard Flowplayer 3.2.6 Control Bars currently have a small issue that may cause problems with the sizing of VPAID linear ads. 125 126 Flowplayer 3.2.6 when used with flowplayer-controls.3.2.4 or flowplayer-controls.3.2.5 will report the height of the controls as 0. 127 128 OVA uses the sizing information for the control bars when configuring VPAID ads. Incorrect sizing information will result in the VPAID ad not displaying correctly around the control bar area. 129 130 To force the sizing of the control bar to be correctly recognised by OVA, a control bar "height" option has been introduced. 131 132 Use this option as follows: 133 134 {{{ 135 "ads": { 136 "controls": { 137 "height": 30 138 } 139 } 140 }}} 141 142 ==== 4.1.2 VPAID Ads and "always" autoHide control bars ==== 143 144 By default, VPAID ads will cover "always" autoHide configured control bars. 145 146 For some reason however, the control bar may occasionally appear over the VPAID ad when the mouse is moved over the control bar area. This is not a consistent bug and seems to happen randomly. 147 148 If you notice this behaviour and wish to size the VPAID ad so that it is not appearing over the control bar area, use the following option in conjunction with the "autoHide": "always" Flowplayer player configuration: 149 150 {{{ 151 "ads": { 152 "vpaid": { 153 "controls": { "hideOnLinearPlayback": "false" } 154 } 155 } 156 }}} 157 158 === 4.2 Enabling VPAID for OVA for JW Player 5 === 117 159 118 160 VPAID ads will be played by default by OVA for JW Player 5. No specific configuration is required. … … 122 164 The default behaviour for OVA is to hide the control bar during VPAID Linear Ad playback. This behaviour can be overridden (see below). 123 165 124 === 4. 2Enabling VPAID for OVA for JW Player 4 ===166 === 4.3 Enabling VPAID for OVA for JW Player 4 === 125 167 126 168 For VPAID Linear Ads to work with OVA for JW Player 4, a "holding" clip must be placed in the position of the linear ad within the playlist. A holding clip is a "minimal" image - a single black pixel image file. … … 147 189 To see an example JW4 VPAID linear ad in action, click [http://static.openvideoads.org/rc/2/ova.jwplayer.4x/examples/pages/vpaid here]. 148 190 149 === 4. 3Showing the Control Bar during VPAID Linear Playback ===191 === 4.4 Showing the Control Bar during VPAID Linear Playback === 150 192 151 193 OVA for JW Player 4/5 hides the control bar by default during VPAID Linear Ad playback. … … 164 206 An example can be found [http://static.openvideoads.org/rc/2/ova.jwplayer.5x/examples/pages/vpaid/example1.2.html here]. 165 207 166 === 4. 4Instructing OVA to pass a Referrer URL to the VPAID Ads ===208 === 4.5 Instructing OVA to pass a Referrer URL to the VPAID Ads === 167 209 168 210 Sometimes VPAID ads require a "referrer" URL to be passed to them. … … 181 223 An example can be found [http://static.openvideoads.org/rc/2/ova.jwplayer.5x/examples/pages/vpaid/example3.1.html here]. 182 224 183 === 4. 5Setting the Maximum Timeout Option ===225 === 4.6 Setting the Maximum Timeout Option === 184 226 185 227 If a VPAID ad has an internal exception that cannot be caught by OVA, a default timer can be set to ensure that OVA will eventually close down the VPAID ad and continue on to the next clip. … … 199 241 An example can be found [http://static.openvideoads.org/rc/2/ova.jwplayer.5x/examples/pages/vpaid/example3.2.html here]. 200 242 201 === 4. 6Integrating VPAID Into your Custom Player via OVA for AS3 ===243 === 4.7 Integrating VPAID Into your Custom Player via OVA for AS3 === 202 244 203 245 ''The code shown in this section has been taken from the OVA for JW Player 5 implementation. Please use that implementation as a reference implementation when integrating the OVA VPAID functionality into your custom player.'' 204 246 205 ==== 4. 6.1 How OVA Treats VPAID Ads ====247 ==== 4.7.1 How OVA Treats VPAID Ads ==== 206 248 207 249 VPAID ads are delivered to OVA via a VAST response. … … 237 279 In principal, OVA does all the work to playback a VPAID ad. The custom player just has to recognise when an ad to be played is a VPAID ad and trigger the OVA VPAID playback functionality accordingly. 238 280 239 ==== 4. 6.2 The Three Steps to Integration ====281 ==== 4.7.2 The Three Steps to Integration ==== 240 282 241 283 To implement OVA VPAID functionality within your player, three steps should be taken: … … 245 287 3. Implement the clip control logic to ensure that if the active ad to play is a VPAID ad, play it using the OVA "playVPAID" method rather than loading it as a clip into the player 246 288 247 ==== 4. 6.3 The VPAID Events ====289 ==== 4.7.3 The VPAID Events ==== 248 290 249 291 Two sets of VPAID events are provided by OVA - those generated by linear VPAID ads, and those generated by non-linear VPAID ads. … … 273 315 Typically a full set of event handlers implemented for the type of VPAID ads (linear, non-linear) that you are delivering. 274 316 275 ==== 4. 6.4 Implementing The VPAID Event Handlers ====317 ==== 4.7.4 Implementing The VPAID Event Handlers ==== 276 318 277 319 A VPAID Event handler is declared using the "addEventListener" VASTController method. The following code snippet illustrates how to declare event listeners for the full set of linear VPAID events: … … 322 364 * The VPAIDAdDisplayEvent passed to VPAID Time Change handlers will contain an int that represents the time remaining in the playback of the VPAID ad. Note, this "remaining time" notification mechanism does not seem to be reliably implemented across ad providers so it should not be relied upon. 323 365 324 ==== 4. 6.5 Triggering the Playback of a VPAID Ad ====366 ==== 4.7.5 Triggering the Playback of a VPAID Ad ==== 325 367 326 368 OVA AdSlots now have an "isInteractive()" method. This method can be used to query the AdSlot type. If AdSlot.isInteractive() == true, the AdSlot is a VPAID linear or non-linear ad. … … 343 385 * On completion of the VPAID ad, the OVA VASTController takes care of cleaning up the VPAID ad resources and hiding the overlay used to display the VPAID ad 344 386 345 ==== 4. 6.6 Getting hold of the active VPAID ad and then manipulate it ====387 ==== 4.7.6 Getting hold of the active VPAID ad and then manipulate it ==== 346 388 347 389 The following code snippet illustrates how to get hold of the active VPAID ad and change the volume on it: … … 359 401 }}} 360 402 361 === 4. 7Known Limitations ===403 === 4.8 Known Limitations === 362 404 363 405 * An exception in the VPAID ad that does not throw an Error event will hang the player (unless timeout is defined)
