OOAdSpotManager.h
1 
8 #import "CoreMedia/CMTime.h"
9 #import <Foundation/Foundation.h>
10 #import "OOAdSpot.h"
11 
15 @interface OOAdSpotManager : NSObject
16 
20 - (NSSet *)getCuePointsAtSeconds;
21 
25 - (void)resetAds;
26 
30 - (void)clear;
31 
38 - (void)insertAd:(OOAdSpot *)ad;
39 
46 - (void)insertAds:(NSArray *)adSpots;
47 
56 - (OOAdSpot *)adBeforeTime:(Float64)time;
57 
64 - (void)markAsPlayed:(OOAdSpot *)ad;
65 
71 - (NSUInteger)count;
72 
78 - (OOAdSpot *)firstAd;
79 
85 - (OOAdSpot *)nextAd;
86 
92 - (OOAdSpot *)lastAd;
93 
99 - (BOOL)allAdsPlayed;
100 
106 - (BOOL)adPlayed:(OOAdSpot *)ad;
107 
108 @end
A class that manages a list of ad spots for a content.
Definition: OOAdSpotManager.h:15
BOOL allAdsPlayed()
Returns YES if all ads were already played.
void resetAds()
Mark all adspots as unplayed.
void clear()
Clear all adspots.
OOAdSpot * lastAd()
Get last ad in ad array.
A Generic class to hold AdSpot time info.
Definition: OOAdSpot.h:13
NSSet * getCuePointsAtSeconds()
OOAdSpot * nextAd()
Get next ad to be played.
OOAdSpot * firstAd()
Get first ad in ad array.
NSUInteger count()
get the adspot list size