Skip to main content

AndroidBufferConfiguration

The buffer configuration to tweak buffer size and others.

Properties

audioFeedYield?

optional audioFeedYield: boolean

Set to true in order audio renderer not to block other renderers (video) when feeding decoder.


backBufferDurationMs?

optional backBufferDurationMs: number

Maximum duration of the back buffer. In other words, how much time are already played segments to remain in the buffer.


bufferSegmentSize?

optional bufferSegmentSize: number

The internal buffer is divided into segment, and this specifies the size of a single buffer segment.


bufferSizeBytes?

optional bufferSizeBytes: number

Defines the buffer size in bytes.


drainWhileCharging?

optional drainWhileCharging: boolean

Flag indicating whether the buffer should be drained (until AndroidBufferConfiguration.minPlaybackStartMs is reached) or not.


highMediaTimeMs?

optional highMediaTimeMs: number

Time in milliseconds that will be used by the buffer controls to determine if the buffer can be drained.


lowMediaTimeMs?

optional lowMediaTimeMs: number

Time in milliseconds that will be used by the buffer controls to determine if the buffer needs to be filled.


minPlaybackStartMs?

optional minPlaybackStartMs: number

The minimum duration of data that must be buffered for playback to start or resume following a user action such as a seek.


minRebufferStartMs?

optional minRebufferStartMs: number

The minimum duration of data that must be buffered for playback to resume after a player invoked re-buffer.


prioritizeInstreamOverManifestDuration?

optional prioritizeInstreamOverManifestDuration: boolean

Flag indicating whether the buffered duration is evaluated based on playlist (manifest) tags like duration or based on audio/video data segments durations.


prioritizeTimeOverSizeThresholds?

optional prioritizeTimeOverSizeThresholds: boolean

Flag indicating whether the buffer time constraints are prioritized over buffer size constraints AndroidBufferConfiguration.lowMediaTimeMs and AndroidBufferConfiguration.highMediaTimeMs.


videoFeedYield?

optional videoFeedYield: boolean

Set to true in order video renderer not to block other renderers (audio) when feeding decoder.