Skip to main content
Version: 20 Mar 2024

MLMediaPlayerBufferingSettings

Module: Media Player

More...

#include <ml_media_player.h>

Public Attributes

TypeName
MLMediaPlayerBufferingModeinitial_buffering_mode
MLMediaPlayerBufferingModerebuffering_mode
int32_tinitial_watermark_ms
int32_tinitial_watermark_kb
int32_trebuffering_watermark_low_ms
When cached data is below this mark, playback will be paused for buffering until data reaches
int32_trebuffering_watermark_high_ms
int32_trebuffering_watermark_low_kb
When cached data is below this mark, playback will be paused for buffering until data reaches
int32_trebuffering_watermark_high_kb

Detailed Description

struct MLMediaPlayerBufferingSettings;

Indicate the buffering settings.


Public Attributes Documentation

initial_buffering_mode

MLMediaPlayerBufferingMode initial_buffering_mode;

For prepare.


rebuffering_mode

MLMediaPlayerBufferingMode rebuffering_mode;

For playback.


initial_watermark_ms

int32_t initial_watermark_ms;

Time based.


initial_watermark_kb

int32_t initial_watermark_kb;

Size based.


rebuffering_watermark_low_ms

int32_t rebuffering_watermark_low_ms;

When cached data is below this mark, playback will be paused for buffering until data reaches |mRebufferingWatermarkHighMs| or end of stream.


rebuffering_watermark_high_ms

int32_t rebuffering_watermark_high_ms;

When cached data is above this mark, buffering will be paused.


rebuffering_watermark_low_kb

int32_t rebuffering_watermark_low_kb;

When cached data is below this mark, playback will be paused for buffering until data reaches |mRebufferingWatermarkHighKB| or end of stream.


rebuffering_watermark_high_kb

int32_t rebuffering_watermark_high_kb;

When cached data is above this mark, buffering will be paused.