Variable BitmovinCastManagerConst

BitmovinCastManager: {
    initialize: ((options?) => Promise<void>);
    isInitialized: (() => Promise<boolean>);
    sendMessage: ((message, messageNamespace?) => any);
    updateContext: (() => Promise<void>);
} = ...

Singleton providing access to GoogleCast related features. The BitmovinCastManager needs to be initialized by calling BitmovinCastManager.initialize before Player creation to enable casting features.

Type declaration

  • initialize: ((options?) => Promise<void>)

    Initialize BitmovinCastManager based on the provided BitmovinCastManagerOptions. This method needs to be called before Player creation to enable casting features. If no options are provided, the default options will be used.

    IMPORTANT: This should only be called when the Google Cast SDK is available in the application.

    Returns

    A promise that resolves when the BitmovinCastManager was initialized successfully

      • (options?): Promise<void>
      • Parameters

        Returns Promise<void>

  • isInitialized: (() => Promise<boolean>)

    Returns whether the BitmovinCastManager is initialized.

    Returns

    A promise that resolves with a boolean indicating whether the BitmovinCastManager is initialized

      • (): Promise<boolean>
      • Returns Promise<boolean>

  • sendMessage: ((message, messageNamespace?) => any)

    Sends the given message to the cast receiver.

    Returns

    A promise that resolves when the message was sent successfully

      • (message, messageNamespace?): any
      • Parameters

        • message: String

          The message to be sent

        • messageNamespace: null | String = null

          The message namespace to be used, in case of null the default message namespace will be used

        Returns any

  • updateContext: (() => Promise<void>)

    Must be called in every Android Activity to update the context to the current one. Make sure to call this method on every Android Activity switch.

    Returns

    A promise that resolves when the context was updated successfully

    Platform

    Android

      • (): Promise<void>
      • Returns Promise<void>

Platform

Android, iOS