OOCastPlayer.h
1 //
2 // OOCastPlayer.h
3 // OoyalaSDK
4 //
5 // Copyright © 2014 Brightcove, Inc. All rights reserved.
6 //
7 
8 #import <GoogleCast/GoogleCast.h>
9 #import <OoyalaSDK/OOPlayerProtocol.h>
10 
11 @class OOCastManager;
12 @class OOCastModeOptions;
13 @class OOOoyalaPlayer;
14 @class OOStateNotifier;
15 @protocol OOCastMiniControllerProtocol;
16 @protocol OOCastManagerInternalProtocol;
17 
18 @interface OOCastPlayer : GCKCastChannel <OOPlayerProtocol>
19 
20 @property (nullable, nonatomic) OOStateNotifier *stateNotifier;
21 @property (nullable, nonatomic) NSString *embedCode;
22 @property (nonatomic) Float64 playheadTime;
23 @property (nonnull, nonatomic) NSString *castItemTitle;
24 @property (nonnull, nonatomic) NSString *castItemDescription;
25 @property (nonnull, nonatomic) NSString *castItemPromoImg;
26 @property (nonatomic, readonly) BOOL isMiniControllerInteractionAvailable;
27 
28 - (nonnull instancetype)init __attribute__((unavailable("use initWithNamespace:deviceManager:castManager")));
29 - (nonnull instancetype)initWithNamespace:(nonnull NSString *)appNamespace
30  castSession:(nullable GCKCastSession *)castSession
31  castManager:(nullable id<OOCastManagerInternalProtocol>)castManager;
32 
33 - (void)registerWithOoyalaPlayer:(nullable OOOoyalaPlayer *)ooyalaPlayer;
34 - (void)updateMetadataCastItemPromoImg:(nullable NSString *)castItemPromoImg
35  castItemTitle:(nullable NSString *)castItemTitle
36  castItemDescription:(nullable NSString *)castItemDescription;
37 - (void)enterCastModeWithOptions:(nonnull OOCastModeOptions *)options
38  embedToken:(nonnull NSString *)embedToken
39  additionalInitParams:(nullable NSDictionary *)params;
40 - (void)registerMiniController:(nullable id<OOCastMiniControllerProtocol>)miniController;
41 - (void)deregisterMiniController:(nullable id<OOCastMiniControllerProtocol>)miniController;
42 - (void)onExitCastMode;
43 - (void)forceAssetRejoin;
44 
45 @end
NSString * castItemTitle
Definition: OOCastPlayer.h:23
void forceAssetRejoin()
Definition: OOCastPlayer.m:131
BOOL isMiniControllerInteractionAvailable
Definition: OOCastPlayer.h:26
A class that manages a Cast session with a receiver device.
Definition: GCKCastSession.h:28
(unavailable("use initWithNamespace:deviceManager:castManager" __attribute__()
NSString * castItemPromoImg
Definition: OOCastPlayer.h:25
NSString * castItemDescription
Definition: OOCastPlayer.h:24
Definition: OOCastManager.h:52
OOStateNotifier * stateNotifier
Definition: OOCastPlayer.h:20
A virtual communication channel for exchanging messages between a Cast sender and a Cast receiver...
Definition: GCKCastChannel.h:25
Definition: OOCastPlayer.h:18
NSString * embedCode
Definition: OOCastPlayer.h:21
void onExitCastMode()
Definition: OOCastPlayer.m:127
Float64 playheadTime
Get the current playhead time.
Definition: OOCastPlayer.h:22