Player buffer config object to configure buffering behavior.

interface BufferConfig {
    audioAndVideo?: BufferMediaTypeConfig;
    restartThreshold?: number;
    startupThreshold?: number;
}

Properties

audioAndVideo?: BufferMediaTypeConfig

Configures various settings for the audio and video buffer.

restartThreshold?: number

Amount of seconds the player buffers before playback starts again after a stall. This value is restricted to the maximum value of the buffer minus 0.5 seconds.

Default is 5 seconds.

Platform

Android

startupThreshold?: number

Amount of seconds the player buffers before playback starts. This value is restricted to the maximum value of the buffer minus 0.5 seconds.

Default is 2.5 seconds.

Platform

Android