Bitmovin Player React Native SDK - v1.1.0
    Preparing search index...

    Variable BitmovinCastManagerConst

    BitmovinCastManager: {
        initialize: (
            options?: null | BitmovinCastManagerOptions,
        ) => Promise<void>;
        isInitialized: () => Promise<boolean>;
        sendMessage: (
            message: string,
            messageNamespace?: null | string,
        ) => Promise<void>;
        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?: null | BitmovinCastManagerOptions) => 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.

    • isInitialized: () => Promise<boolean>

      Returns whether the BitmovinCastManager is initialized.

    • sendMessage: (message: string, messageNamespace?: null | string) => Promise<void>

      Sends the given message to the cast receiver.

    • 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.

      Platform: Android

    Platform: Android, iOS