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

    Class MediaControlsApi

    Provides control for the Player's media controls integration.

    Accessible through Player.mediaControls.

    iOS, tvOS

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    nativeId: string

    The native player id that this media controls api is attached to.

    Methods

    • Indicates whether the Player publishes media control information and registers media command handlers.

      The initial value is configured via MediaControlConfig.isEnabled. Disabling this integration clears the Player's media controls metadata and removes the Player's command handlers.

      • Google IMA SDK instances that were already created can still publish their own media control information.
      • This API only controls the Bitmovin Player media controls integration. It does not manage media controls, sessions, command handlers, or metadata created directly by the app or by other libraries.

      Returns Promise<boolean>

      true if the media controls integration is enabled, false otherwise. Always false on Android.

      iOS, tvOS

    • Enables or disables the Player's media controls integration at runtime.

      Parameters

      • enabled: boolean

        Whether the media controls integration should be enabled.

      Returns Promise<void>

      iOS, tvOS