BMPBitmovinCastManager


@interface BMPBitmovinCastManager : NSObject

IMPORTANT: Methods from BMPBitmovinCastManager need to be called from the main thread.

Singleton providing access to GoogleCast related features. The BMPBitmovinCastManager needs to be initialized by calling BMPBitmovinCastManager#initializeCasting in the AppDelegate of the application which should support casting.

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isConnected
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isConnecting
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isCastAvailable
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) GCKMediaStatus *currentMediaStatus
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) GCKMediaMetadata *currentMediaMetadata
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) GCKDevice *currentDevice
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isPlaying
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isPaused
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isMuted
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isStalled
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSTimeInterval currentTime
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSTimeInterval duration
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable, strong) GCKCastChannel *defaultChannel
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    + (instancetype)new NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    + (instancetype)sharedInstance;
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)isInitialized;
  • Uses default Bitmovin receiver app

    Declaration

    Objective-C

    + (void)initializeCasting;
  • Deprecated

    Use BMPBitmovinCastManager#initializeCasting(options:) instead.

    Uses given receiver app

    Declaration

    Objective-C

    + (void)initializeCasting:(nonnull NSString *)applicationId;

    Parameters

    applicationId

    ID of receiver application

  • Deprecated

    Use BMPBitmovinCastManager#initializeCasting(options:) instead.

    Uses given receiver app

    Declaration

    Objective-C

    + (void)initializeCasting:(nonnull NSString *)applicationId
             messageNamespace:(nullable NSString *)messageNamespace;

    Parameters

    applicationId

    ID of receiver application

    messageNamespace

    Custom namespace

  • Initialize BitmovinCastManager based on the provided BitmovinCastManagerOptions.

    Declaration

    Objective-C

    + (void)initializeCastingWithOptions:
        (nonnull BMPBitmovinCastManagerOptions *)options;

    Parameters

    options

    BMPBitmovinCastManagerOptions to use for initializing BMPBitmovinCastManager

  • Undocumented

    Declaration

    Objective-C

    - (void)loadMedia;
  • Undocumented

    Declaration

    Objective-C

    - (void)loadMedia:(BOOL)autoplay NS_SWIFT_NAME(loadMedia(autoplay:));
  • Undocumented

    Declaration

    Objective-C

    - (void)loadMedia:(BOOL)autoplay position:(NSTimeInterval)position NS_SWIFT_NAME(loadMedia(autoplay:position:));
  • Undocumented

    Declaration

    Objective-C

    - (void)unload;
  • Undocumented

    Declaration

    Objective-C

    - (void)showDialog;
  • Undocumented

    Declaration

    Objective-C

    - (void)addListener:(id<BMPBitmovinCastManagerListener>)listener NS_SWIFT_NAME(add(listener:));
  • Undocumented

    Declaration

    Objective-C

    - (void)removeListener:(id<BMPBitmovinCastManagerListener>)listener NS_SWIFT_NAME(remove(listener:));
  • Undocumented

    Declaration

    Objective-C

    - (void)play;
  • Undocumented

    Declaration

    Objective-C

    - (void)pause;
  • Undocumented

    Declaration

    Objective-C

    - (void)seek:(NSTimeInterval)time NS_SWIFT_NAME(seek(time:));
  • Undocumented

    Declaration

    Objective-C

    - (void)seekToItemWithItemId:(NSUInteger)itemId andTime:(NSTimeInterval)time NS_SWIFT_NAME(seekToItem(itemId:time:));
  • Undocumented

    Declaration

    Objective-C

    - (NSUInteger)getItemIdAtIndex:(NSUInteger)index NS_SWIFT_NAME(getItemId(index:));
  • Sends the given message to the cast receiver. The receiver can pick up the message on the namespace returned by defaultChannel.protocolNamespace.

    Declaration

    Objective-C

    - (BOOL)sendMessage:(nonnull NSString *)message;

    Parameters

    message

    The message to send.

    Return Value

    true if the message could be sent successfully.

  • Sends the given message to the cast receiver on the provided namespace. If no namespace is provided, the one returned by defaultChannel.protocolNamespace is used.

    Declaration

    Objective-C

    - (BOOL)sendMessage:(nonnull NSString *)message
          withNamespace:(nullable NSString *)messageNamespace;

    Parameters

    message

    The message to send.

    messageNamespace

    The namespace the message should be send on.

    Return Value

    true if the message could be sent successfully.

  • Sends the given metadata wrapped in a metadata message object to the cast receiver on the configured message namespace. The provided metadata must be serializable using NSJSONSerialization.

    Declaration

    Objective-C

    - (BOOL)sendMetadata:(nonnull NSDictionary *)metadata;

    Parameters

    metadata

    The metadata to send. Must be serializable using NSJSONSerialization.

    Return Value

    true if the message could be sent successfully.