OOAdSpotPlugin.h
1 //
2 // OODefaultAdsPlugin.h
3 // OoyalaSDK
4 //
5 // Copyright (c) 2015 Brightcove, Inc. All rights reserved.
6 //
7 
8 #import "OOAdPlugin.h"
9 #import "OOAdSpotManager.h"
10 
11 #define PLUGIN_INIT -2
12 #define CONTENT_CHANGED -1
13 
15 
16 - (BOOL)playAd:(OOAdSpot *)ad;
17 - (void)onError;
18 - (void)skipAd;
19 
20 @end
21 
22 @interface OOAdSpotPlugin : NSObject<OOAdPlugin>
23 
24 @property (nonatomic) Float64 lastAdModeTime;
25 @property (readonly) OOAdSpotManager *adSpotManager;
26 @property (nonatomic, weak) id<OOAdSpotPluginDelegate> delegate;
27 
28 - (BOOL)playAdsBeforeTime;
29 
30 @end
id< OOAdSpotPluginDelegate > delegate
Definition: OOAdSpotPlugin.h:26
A class that manages a list of ad spots for a content.
Definition: OOAdSpotManager.h:15
Float64 lastAdModeTime
Definition: OOAdSpotPlugin.h:24
BOOL playAdsBeforeTime()
Definition: OOAdSpotPlugin.h:14
Definition: OOAdSpotPlugin.h:22
OOAdSpotManager * adSpotManager
Definition: OOAdSpotPlugin.h:25
A Generic class to hold AdSpot time info.
Definition: OOAdSpot.h:13
An interface to implement an Ad Plugin, which can plug into the OoyalaPlayer.
Definition: OOAdPlugin.h:13