React Native THEOplayer SDK
    Preparing search index...

    Interface MediaControlConfiguration

    Describes the configuration of media controls and media sessions across platforms.

    For Android, this applies to the Media Session functionality, providing the platform with a uniform way of interacting with the player, and the Notification to display information on the media currently playing.

    For Web, this applies to the Media Session API for customizing media notifications and access to platform media keys.

    For iOS, this applies to the Now Playing functionality for setting information on the media that is currently playing, and the Remote Command Center responds to remote control events sent by external accessories and system controls.

    interface MediaControlConfiguration {
        allowLivePlayPause?: boolean;
        convertSkipToSeek?: boolean;
        mediaSessionEnabled?: boolean;
        seekToLiveOnResume?: boolean;
        skipBackwardInterval?: number;
        skipForwardInterval?: number;
    }
    Index
    allowLivePlayPause?: boolean

    A flag that indicates whether play/pause controls for live streams are enabled.

    iOS: true, Android: false

    iOS
    Android
    convertSkipToSeek?: boolean

    A flag that allows next/previous track commands to be interpreted as skip forward/backward commands, according to the configured skip intervals.

    false

    iOS
    Android

    Use MediaControlAPI to handle skipToPrevious and skipToNext actions instead.

    mediaSessionEnabled?: boolean

    Whether the media session feature is enabled.

    true

    iOS
    Android
    Web
    seekToLiveOnResume?: boolean

    A flag that controls whether to seek to the live edge when resuming a paused live stream. Note that allowLivePlayPause needs to be enabled for this property to have effect.

    false

    iOS
    Android

    Use MediaControlAPI to handle play action and seek to the live edge instead.

    skipBackwardInterval?: number

    The amount of seconds the player will skip backward.

    5 on Web and android, 15 on iOS.
    
    skipForwardInterval?: number

    The amount of seconds the player will skip forward.

    5 on Web and android, 15 on iOS.