OOAdSpotManager Class Reference

A class that manages a list of ad spots for a content. More...

#import "OOAdSpotManager.h"

+ Inheritance diagram for OOAdSpotManager:

Instance Methods

(NSSet *) - getCuePointsAtSeconds
 
(void) - resetAds
 Mark all adspots as unplayed. More...
 
(void) - clear
 Clear all adspots. More...
 
(void) - insertAd:
 Insert an adSpot. More...
 
(void) - insertAds:
 Insert an adSpot. More...
 
(OOAdSpot *) - adBeforeTime:
 get the adspot before a certain time, More...
 
(void) - markAsPlayed:
 mark an adspot as played More...
 
(NSUInteger) - count
 get the adspot list size More...
 
(OOAdSpot *) - firstAd
 Get first ad in ad array. More...
 
(OOAdSpot *) - nextAd
 Get next ad to be played. More...
 
(OOAdSpot *) - lastAd
 Get last ad in ad array. More...
 
(BOOL) - allAdsPlayed
 Returns YES if all ads were already played. More...
 
(BOOL) - adPlayed:
 Returns YES if ad was already played. More...
 

Detailed Description

A class that manages a list of ad spots for a content.

OOAdSpotManager.

OOAdSpotManager.h in OoyalaSDK

Method Documentation

- (OOAdSpot *) adBeforeTime: (Float64)  time

get the adspot before a certain time,

Parameters
timein CMTime
Returns
the unplayed adspot before the specified time which, null if no such adspot
- (BOOL) adPlayed: (OOAdSpot *)  ad

Returns YES if ad was already played.

Returns
YES or NO
- (BOOL) allAdsPlayed

Returns YES if all ads were already played.

Returns
YES or NO
- (void) clear

Clear all adspots.

- (NSUInteger) count

get the adspot list size

Returns
size
- (OOAdSpot *) firstAd

Get first ad in ad array.

Returns
OOAdSpot
- (NSSet *) getCuePointsAtSeconds
Returns
non-nil (possibly empty) NSNumber (int in seconds) set of cue point times for ads.
- (void) insertAd: (OOAdSpot *)  ad

Insert an adSpot.

Parameters
adthe adSpot to insert
- (void) insertAds: (NSArray *)  adSpots

Insert an adSpot.

Parameters
adSpotsthe adSpot to insert
- (OOAdSpot *) lastAd

Get last ad in ad array.

Returns
OOAdSpot
- (void) markAsPlayed: (OOAdSpot *)  ad

mark an adspot as played

Parameters
adthe adspot to be marked
- (OOAdSpot *) nextAd

Get next ad to be played.

Returns
OOAdSpot
- (void) resetAds

Mark all adspots as unplayed.


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