OOCastManager.h
1 //
2 // OOCastManager.h
3 // OoyalaSDK
4 //
5 // Created on 8/29/14.
6 // Copyright © 2014 Brightcove, Inc. All rights reserved.
7 //
8 
9 #import <UIKit/UIKit.h>
10 #import <OoyalaSDK/OOCastManagerProtocol.h>
11 #import <GoogleCast/GCKDevice.h>
12 #import <OoyalaSDK/OOPlayerProtocol.h>
13 
14 @class OOCastPlayer;
15 @class OOOoyalaPlayer;
16 @class OOCastManager;
17 @protocol OOCastMiniControllerProtocol;
18 
20 
26 - (void)castManagerDidEnterCastMode:(nonnull OOCastManager *)manager;
32 - (void)castManagerDidExitCastMode:(nonnull OOCastManager *)manager;
38 - (void)castManagerDidDisconnect:(nonnull OOCastManager *)manager;
45 - (void)castManager:(nonnull OOCastManager *)manager
46  didFailWithError:(nonnull NSError *)error
47  andExtras:(nullable NSDictionary *)extras;
48 
49 @end
50 
51 
52 @interface OOCastManager : UIViewController <OOCastManagerProtocol>
53 
54 @property (nonatomic, readonly, nullable) GCKDevice *selectedDevice;
55 @property (nonatomic, weak, nullable) id<OOCastManagerDelegate> delegate;
56 @property (nonatomic, readonly) OOOoyalaPlayerState state;
57 
63 + (nonnull OOCastManager *)castManagerWithAppID:(nonnull NSString *)receiverAppID
64  namespace:(nonnull NSString *)appNamespace;
65 
66 - (void)registerMiniController:(nullable id<OOCastMiniControllerProtocol>)miniController;
67 
72 
76 - (nonnull UIButton *)castButton;
77 
81 - (void)setCastModeVideoView:(nonnull UIView *)castView;
82 
87 - (void)setAdditionalInitParams:(nullable NSDictionary *)params;
88 
89 @end
nonnull UIButton * castButton()
Return the cast button.
Definition: OOCastManager.m:115
GCKDevice * selectedDevice
Definition: OOCastManager.h:54
An object representing a receiver device.
Definition: GCKDevice.h:82
id< OOCastManagerDelegate > delegate
Definition: OOCastManager.h:55
void disconnectFromOoyalaPlayer()
Disconnect the OOCastManager from ooyalaPlayer.
Definition: OOCastManager.m:108
OOOoyalaPlayerState state
Definition: OOCastManager.h:56
Definition: OOCastManager.h:19
Definition: OOCastManager.h:52
Definition: OOCastPlayer.h:18