BMPBitmovinCastManagerListener

Objective-C

@protocol BMPBitmovinCastManagerListener <NSObject>

Swift

protocol BitmovinCastManagerListener : NSObjectProtocol

Listener protocol which can be used to listen to events of the BMPBitmovinCastManager.

  • Called when GCKMediaStatus been updated

    Declaration

    Objective-C

    - (void)updatedMediaStatus:(nullable GCKMediaStatus *)mediaStatus;

    Swift

    optional func updatedMediaStatus(_ mediaStatus: GCKMediaStatus?)

    Parameters

    mediaStatus

    The updated GCKMediaStatus object

  • Called when GCKMediaMetadata has been updated

    Declaration

    Objective-C

    - (void)updatedMediaMetadata:(nonnull GCKMediaMetadata *)mediaMetadata;

    Swift

    optional func updatedMediaMetadata(_ mediaMetadata: GCKMediaMetadata)

    Parameters

    mediaMetadata

    The updated GCKMediaMetadata object

  • Called when a GCKCastSession session is about to be started or resumed

    Declaration

    Objective-C

    - (void)applicationWillConnect:(nonnull NSString *)deviceName;

    Swift

    optional func applicationWillConnect(_ deviceName: String)
  • Called when a GCKCastSession to a cast device has been successfully started or resumed

    Declaration

    Objective-C

    - (void)applicationConnected:(nonnull NSString *)deviceName;

    Swift

    optional func applicationConnected(_ deviceName: String)

    Parameters

    deviceName

    The friendly name of the cast device

  • Called when a GCKCastSession has been stopped or suspended.

    Declaration

    Objective-C

    - (void)applicationDisconnected;

    Swift

    optional func applicationDisconnected()
  • Called when availability of cast devices has changed

    Declaration

    Objective-C

    - (void)castAvailableChanged:(BOOL)castAvailable;

    Swift

    optional func castAvailableChanged(_ castAvailable: Bool)

    Parameters

    castAvailable

    YES if cast devices are available, NO otherwise

  • Called when the current cast channel received a text message

    Declaration

    Objective-C

    - (void)castChannel:(nonnull GCKCastChannel *)castChannel
        didReceiveTextMessage:(nonnull NSString *)textMessage;

    Swift

    optional func castChannel(_ castChannel: GCKCastChannel, didReceiveTextMessage textMessage: String)

    Parameters

    castChannel

    the channel which received the message

    textMessage

    the text message

  • Called when currently playing queue item index has been updated, this will be called regardless it has changed compared to previous value or not

    Declaration

    Objective-C

    - (void)queueDidUpdateActiveItemIndex:(NSInteger)activeItemIndex;

    Swift

    optional func queueDidUpdate(activeItemIndex: Int)

    Parameters

    activeItemIndex

    index of current queue item, NSNotFound when no item is loaded