OOOoyalaPlayer+Ads.h
1 //
2 // OOOoyalaPlayer+Ads.h
3 // OoyalaSDK
4 //
5 // Created on 10/31/18.
6 // Copyright © 2018 Brightcove, Inc. All rights reserved.
7 //
8 
9 #import "OOOoyalaPlayer.h"
10 #import "OOAdPluginManagerProtocol.h"
11 
12 #ifndef OOOoyalaPlayer_Ads_h
13 #define OOOoyalaPlayer_Ads_h
14 
15 typedef NS_ENUM(NSUInteger, OOOoyalaPlayerJsonType) {
16  OOOoyalaPlayerJsonNone = 0,
17  OOOoyalaPlayerJsonId3,
18  OOOoyalaPlayerJsonChannelInfo,
19  OOOoyalaPlayerJsonMetadata
20 };
21 
22 
23 typedef NS_ENUM(NSUInteger, OOAdType) {
24  OOAdTypeContent = 0,
25  OOAdTypePreroll,
26  OOAdTypeMidroll,
27  OOAdTypePostroll
28 };
29 
31 
32 - (BOOL)needPlayAdsOnInitialContentPlay;
33 - (BOOL)needPlayAds:(OOAdMode)mode withParameter:(NSNumber *)parameter;
34 
35 - (void)switchToContent;
36 - (OOAdType)adType;
37 - (void)processExitAdModes:(OOAdMode)mode adsPlayed:(BOOL)played;
38 
43 - (void)onAdIconClicked:(NSInteger)index;
44 
49 - (void)onAdOverlayClicked:(NSString *)clickUrl;
50 
55 - (void)insertAds:(NSMutableArray *)ads;
56 
60 - (void)clickAd;
61 
65 - (void)resetAds;
66 
70 - (void)skipAd;
71 
72 @end
73 
74 #endif /* OOOoyalaPlayer_Ads_h */
Definition: OOOoyalaPlayer+Ads.h:30