OOFreewheelAdPlayer Class Reference

A class that plays freewheel ads. More...

#import "OOFreewheelAdPlayer.h"

+ Inheritance diagram for OOFreewheelAdPlayer:

Instance Methods

(id) - initWithAd:context: [implementation]
 
(void) - setAdManager: [implementation]
 
(void) - onRendererEvent: [implementation]
 When ad renders, get the clickThrough and clickTracking URLs. More...
 
(void) - onAdSlotStarted: [implementation]
 
(void) - onAdStarted: [implementation]
 When ad slot starts playing, create the learn more button. More...
 
(void) - onAdEnded: [implementation]
 
(void) - onAdSlotEnded: [implementation]
 Every time we complete playing a linear slot, play the next slot until we're done with the stack. More...
 
(void) - adReady: [implementation]
 
(void) - play [implementation]
 
(void) - pause [implementation]
 
(void) - stop [implementation]
 
(BOOL) - isPlaying [implementation]
 
(void) - setState: [implementation]
 
(OOOoyalaPlayerState) - state [implementation]
 
(void) - currentPlaybackTimeUpdate [implementation]
 
(void) - processClickThrough [implementation]
 
(void) - destroy [implementation]
 
(void) - dealloc [implementation]
 
(BOOL) - hasCustomControls [implementation]
 
(NSString *) - firstClickThroughUrl [implementation]
 
(void) - startPlayheadTimer [implementation]
 
(Float64) - playheadTime [implementation]
 
(Float64) - duration [implementation]
 
(void) - stopPlayheadTimer [implementation]
 
(void) - skipAd [implementation]
 

Protected Attributes

id _context
 

Properties

OOFreewheelManageradManager
 
id< FWSlot > currentAd [implementation]
 
id< FWContext > fwContext [implementation]
 
BOOL playQueued [implementation]
 
BOOL noPrerolls [implementation]
 
NSTimer * timer [implementation]
 
OOAdsLearnMoreButton * learnMore [implementation]
 
BOOL isFullScreenShowing [implementation]
 
NSArray * clickThroughURL [implementation]
 
NSArray * clickTrackingURL [implementation]
 
NSUInteger playedAdsCount [implementation]
 

Detailed Description

A class that plays freewheel ads.

OOFreewheelAdPlayer.

OOFreewheelAdPlayer.h in OoyalaFreewheelSDK

Method Documentation

- (void) adReady: (id<FWSlot>)  ad
implementation
- (void) currentPlaybackTimeUpdate
implementation
- (void) dealloc
implementation
- (void) destroy
implementation
- (Float64) duration
implementation
- (NSString *) firstClickThroughUrl
implementation
- (BOOL) hasCustomControls
implementation
- (id) initWithAd: (OOAdSpot *)  ad
context: (id)  context 
implementation
- (BOOL) isPlaying
implementation
- (void) onAdEnded: (NSNotification *)  notification
implementation
- (void) onAdSlotEnded: (NSNotification *)  notification
implementation

Every time we complete playing a linear slot, play the next slot until we're done with the stack.

NOTE: Overlay ad (non-linear) slots also fire FW_NOTIFICATION_SLOT_ENDED so make sure not to call play when overlay ads are complete. This only happens if an overlay slot starts playing during content playback and ends during ad playback.

- (void) onAdSlotStarted: (NSNotification *)  notification
implementation
- (void) onAdStarted: (NSNotification *)  notification
implementation

When ad slot starts playing, create the learn more button.

- (void) onRendererEvent: (NSNotification *)  notification
implementation

When ad renders, get the clickThrough and clickTracking URLs.

- (void) pause
implementation
- (void) play
implementation
- (Float64) playheadTime
implementation
- (void) processClickThrough
implementation
- (void) setAdManager: (OOFreewheelManager *)  adManager
implementation
- (void) setState: (OOOoyalaPlayerState)  state
implementation
- (void) skipAd
implementation
- (void) startPlayheadTimer
implementation
- (OOOoyalaPlayerState) state
implementation
- (void) stop
implementation
- (void) stopPlayheadTimer
implementation

Member Data Documentation

- (id) _context
protected

Property Documentation

- (OOFreewheelManager*) adManager
readwritenonatomicassign
- (NSArray*) clickThroughURL
readwritenonatomicassignimplementation
- (NSArray*) clickTrackingURL
readwritenonatomicassignimplementation
- (id<FWSlot>) currentAd
readwritenonatomicassignimplementation
- (id<FWContext>) fwContext
readwritenonatomicassignimplementation
- (BOOL) isFullScreenShowing
readwritenonatomicassignimplementation
- (OOAdsLearnMoreButton*) learnMore
readwritenonatomicassignimplementation
- (BOOL) noPrerolls
readwritenonatomicassignimplementation
- (NSUInteger) playedAdsCount
readwriteatomicimplementation
- (BOOL) playQueued
readwritenonatomicassignimplementation
- (NSTimer*) timer
readwritenonatomicassignimplementation

The documentation for this class was generated from the following files: