OOCastManager Class Reference

#import <OOCastManager.h>

+ Inheritance diagram for OOCastManager:

Instance Methods

(void) - registerMiniController:
 
(void) - disconnectFromOoyalaPlayer
 Disconnect the OOCastManager from ooyalaPlayer. More...
 
(nonnull UIButton *) - castButton
 Return the cast button. More...
 
(void) - setCastModeVideoView:
 Set the videoView to be displayed on ooyalaPlayer during casting. More...
 
(void) - setAdditionalInitParams:
 Provide key-value pairs that will be passed to the Receiver upon Cast Playback. More...
 
(instancetype) - initWithReceiverAppID:nameSpace: [implementation]
 
(void) - setupCastLogging [implementation]
 
(void) - registerMiniController: [implementation]
 
(void) - setCastModeVideoView: [implementation]
 
(void) - setAdditionalInitParams: [implementation]
 
(BOOL) - isMiniControllerInteractionAvailable [implementation]
 
(void) - registerWithOoyalaPlayer: [implementation]
 
(BOOL) - isConnectedToChromecast [implementation]
 
(void) - displayCastModeVideoView [implementation]
 
(void) - getCastViewWithBlock: [implementation]
 
(void) - setupConstraintsForCastView [implementation]
 
(void) - removeCastModeVideoView [implementation]
 
(void) - requestCastMode [implementation]
 
(void) - enterCastModeWithOptions: [implementation]
 
(void) - getEmbedTokenForEmbedCode:withEmbedTokenGenerator:withCompletion: [implementation]
 
(void) - initCastPlayerWithOptions:embedToken: [implementation]
 
(void) - forceAssetRejoin [implementation]
 
(void) - exitCastMode [implementation]
 
(void) - createNewCastPlayer [implementation]
 
(void) - cleanUpAfterCastSessionDisconnected [implementation]
 
(void) - logMessage:atLevel:fromFunction:location: [implementation]
 
(void) - logError: [implementation]
 
(void) - logError:message: [implementation]
 
(float) - deviceVolume [implementation]
 
(void) - setDeviceVolume: [implementation]
 
(NSInteger) - makeCastSessionRequest:id_block: [implementation]
 
(BOOL) - makeCastSessionRequest:bool_block: [implementation]
 
(void) - makeCastSessionRequest:void_block: [implementation]
 
(void) - disconnectNotUserInitiated [implementation]
 
(void) - disconnectUserInitiated [implementation]
 
(void) - onCastError:extras: [implementation]
 
(void) - sessionManager:didResumeSession: [implementation]
 
(void) - sessionManager:didStartSession: [implementation]
 
(void) - sessionManager:willEndCastSession: [implementation]
 
(void) - sessionManager:didEndSession:withError: [implementation]
 
(void) - sessionManager:didFailToStartSessionWithError: [implementation]
 

Class Methods

(nonnull OOCastManager *) + castManagerWithAppID:namespace:
 Initiate and get a singleton OOCastManager with the given reveiverAppID and nameSpace. More...
 
(OOCastManager *) + castManagerWithAppID:namespace: [implementation]
 

Properties

GCKDeviceselectedDevice
 
id< OOCastManagerDelegatedelegate
 
OOOoyalaPlayerState state
 
OOCastPlayercastPlayer [implementation]
 
GCKSessionManagersessionManager [implementation]
 
NSString * receiverAppID [implementation]
 
NSString * appNamespace [implementation]
 
BOOL isInCastMode [implementation]
 
OOOoyalaPlayer * ooyalaPlayer [implementation]
 
UIView * castView [implementation]
 
NSDictionary * additionalInitParams [implementation]
 

Method Documentation

- (UIButton *) castButton

Return the cast button.

+ (OOCastManager *) castManagerWithAppID: (NSString *)  receiverAppID
namespace: (NSString *)  appNamespace 
implementation
+ (nonnull OOCastManager *) castManagerWithAppID: (nonnull NSString *)  receiverAppID
namespace: (nonnull NSString *)  appNamespace 

Initiate and get a singleton OOCastManager with the given reveiverAppID and nameSpace.

Parameters
receiverAppIDidentifier of receiever's application
namespaceapplication namespace
- (void) cleanUpAfterCastSessionDisconnected
implementation
- (void) createNewCastPlayer
implementation
- (float) deviceVolume
implementation
- (void) disconnectFromOoyalaPlayer

Disconnect the OOCastManager from ooyalaPlayer.

- (void) disconnectNotUserInitiated
implementation
- (void) disconnectUserInitiated
implementation
- (void) displayCastModeVideoView
implementation
- (void) enterCastModeWithOptions: (OOCastModeOptions *)  options
implementation
- (void) exitCastMode
implementation
- (void) forceAssetRejoin
implementation
- (void) getCastViewWithBlock: (void(^)(UIView *))  completionBlock
implementation
- (void) getEmbedTokenForEmbedCode: (NSString *)  embedCode
withEmbedTokenGenerator: (id<OOEmbedTokenGenerator>)  embedTokenGenerator
withCompletion: (void(^)(NSString *))  completionBlock 
implementation
- (void) initCastPlayerWithOptions: (OOCastModeOptions *)  options
embedToken: (NSString *)  embedToken 
implementation
- (instancetype) initWithReceiverAppID: (NSString *)  receiverAppID
nameSpace: (NSString *)  nameSpace 
implementation
- (BOOL) isConnectedToChromecast
implementation
- (BOOL) isMiniControllerInteractionAvailable
implementation
- (void) logError: (NSError *)  error
implementation
- (void) logError: (NSError *)  error
message: (NSString *)  message 
implementation
- (void) logMessage: (NSString *)  message
atLevel: (GCKLoggerLevel)  level
fromFunction: (NSString *)  function
location: (NSString *)  location 
implementation
- (BOOL) makeCastSessionRequest: (NSString *)  log
bool_block: (BOOL(^)(GCKCastSession *))  bool_block 
implementation
- (NSInteger) makeCastSessionRequest: (NSString *)  log
id_block: (NSInteger(^)(GCKCastSession *))  id_block 
implementation
- (void) makeCastSessionRequest: (NSString *)  log
void_block: (void(^)(GCKCastSession *))  void_block 
implementation
- (void) onCastError: (NSError *)  error
extras: (NSDictionary *)  extras 
implementation
- (void) registerMiniController: (id<OOCastMiniControllerProtocol>)  miniController
implementation
- (void) registerMiniController: (nullable id< OOCastMiniControllerProtocol >)  miniController
- (void) registerWithOoyalaPlayer: (OOOoyalaPlayer *)  ooyalaPlayer
implementation
- (void) removeCastModeVideoView
implementation
- (void) requestCastMode
implementation
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didEndSession: (GCKSession *)  session
withError: (NSError *)  error 
implementation
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didFailToStartSessionWithError: (NSError *)  error 
implementation
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didResumeSession: (GCKSession *)  session 
implementation
- (void) sessionManager: (GCKSessionManager *)  sessionManager
didStartSession: (GCKSession *)  session 
implementation
- (void) sessionManager: (GCKSessionManager *)  sessionManager
willEndCastSession: (GCKCastSession *)  session 
implementation
- (void) setAdditionalInitParams: (NSDictionary *)  params
implementation
- (void) setAdditionalInitParams: (nullable NSDictionary *)  params

Provide key-value pairs that will be passed to the Receiver upon Cast Playback.

Anything added to this will overwrite anything set by default in the init.

- (void) setCastModeVideoView: (UIView *)  castView
implementation
- (void) setCastModeVideoView: (nonnull UIView *)  castView

Set the videoView to be displayed on ooyalaPlayer during casting.

- (void) setDeviceVolume: (float)  deviceVolume
implementation
- (void) setupCastLogging
implementation
- (void) setupConstraintsForCastView
implementation

Property Documentation

- (NSDictionary*) additionalInitParams
readwritenonatomicassignimplementation
- (NSString*) appNamespace
readwritenonatomicassignimplementation
- (OOCastPlayer*) castPlayer
readwritenonatomicassignimplementation
- (UIView*) castView
readwritenonatomicassignimplementation
- (id<OOCastManagerDelegate>) delegate
readwritenonatomicweak
- (BOOL) isInCastMode
readwritenonatomicassignimplementation
- (OOOoyalaPlayer*) ooyalaPlayer
readwritenonatomicweakimplementation
- (NSString*) receiverAppID
readwritenonatomicassignimplementation
- (GCKDevice *) selectedDevice
readnonatomicassign
- (GCKSessionManager*) sessionManager
readwritenonatomicassignimplementation
- (OOOoyalaPlayerState) state
readnonatomicassign

The documentation for this class was generated from the following files: