An interface to implement an Ad Plugin, which can plug into the OoyalaPlayer.
More...
#import <OOAdPlugin.h>
An interface to implement an Ad Plugin, which can plug into the OoyalaPlayer.
- See also
- - registerAdPlayer:forType: (OOOoyalaPlayer(AdPluginManagement))
This is called when the ad is clicked.
- (NSSet *) getCuePointsAtSeconds |
|
|
|
- Returns
- non-nil (possibly empty) array of cue point times for ads.NSNumber int seconds>
Called to check if we're not dealing with nil ads.
- Returns
- YES if ads are present
- (void) onAdIconClicked: |
|
(NSInteger) |
index |
|
Called when an icon is clicked.
- Parameters
-
index | the index of the icon |
This is called when control is handed over to the plugin.
- (BOOL) onContentChanged |
|
|
|
This is called when content changed.
- Returns
- true if plugin want to enter admode, false otherwise
- (BOOL) onContentError: |
|
(int) |
errorCode |
|
This is called when an error occured when playing back content.
- Returns
- true if plugin want to enter admode, false otherwise
- (BOOL) onContentFinished |
|
|
|
This is called before finishing playing content so plugin can play postroll.
- Returns
- true if plugin want to enter admode, false otherwise
- (BOOL) onCuePoint: |
|
(int) |
cuePointIndex |
|
This is called when a cue point is reached so plugin can play midroll.
- Returns
- true if plugin want to enter admode, false otherwise
This is called before start playing content so plugin can play preroll.
- Returns
- true if plugin want to enter admode, false otherwise
- (BOOL) onPlayheadUpdate: |
|
(Float64) |
playhead |
|
This is called when playhead is updated so plugin can play midroll.
- Returns
- true if plugin want to enter admode, false otherwise
This is called ooyala UI pass down UI related events.
- Returns
- an object that implements PlayerInterface if plugin needs to process ui events, null if these events should be ignored.
This is called to reset all ads to unplayed.
This is called to skip the current ad.
The documentation for this protocol was generated from the following file: