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

    Interface PlaybackConfig

    Configures the playback behaviour of the player.

    interface PlaybackConfig {
        decoderConfig?: DecoderConfig;
        isAutoplayEnabled?: boolean;
        isBackgroundPlaybackEnabled?: boolean;
        isMuted?: boolean;
        isPictureInPictureEnabled?: boolean;
        isTimeShiftEnabled?: boolean;
    }
    Index

    Properties

    decoderConfig?: DecoderConfig

    Configures decoder behaviour.

    Platform: Android

    isAutoplayEnabled?: boolean

    Whether the player starts playing automatically after loading a source or not. Default is false.

    const player = new Player({
    playbackConfig: {
    isAutoplayEnabled: true,
    },
    });
    isBackgroundPlaybackEnabled?: boolean

    Whether background playback is enabled or not. Default is false.

    When set to true, playback is not automatically paused anymore when the app moves to the background. When set to true, also make sure to properly configure your app to allow background playback.

    Default is false.

    • On Android, MediaControlConfig.isEnabled has to be true for background playback to work.
    • On tvOS, background playback is only supported for audio-only content.
    const player = new Player({
    playbackConfig: {
    isBackgroundPlaybackEnabled: true,
    },
    });
    isMuted?: boolean

    Whether the sound is muted on startup or not. Default value is false.

    const player = new Player({
    playbackConfig: {
    isMuted: true,
    },
    });
    isPictureInPictureEnabled?: boolean

    Whether the Picture in Picture mode option is enabled or not. Default is false.

    const player = new Player({
    playbackConfig: {
    isPictureInPictureEnabled: true,
    },
    });

    Use PictureInPictureConfig.isEnabled instead.

    isTimeShiftEnabled?: boolean

    Whether time shift / DVR for live streams is enabled or not. Default is true.

    const player = new Player({
    playbackConfig: {
    isTimeShiftEnabled: false,
    },
    });