onPlayBufferUpdated
onPlayBufferUpdated callback: Reports the duration that buffered data can support playback.
void onPlayBufferUpdated(long playCachedBuffer)
This callback is triggered every two seconds during online media playback.
- When the duration that buffered data can support playback is less than the threshold (default is 0), the SDK returns
PLAYER_EVENT_BUFFER_LOW(6). - When the duration is greater than the threshold (default is 0), the SDK returns
PLAYER_EVENT_BUFFER_RECOVER(7).
Trigger Timing
This callback is triggered every two seconds during online media playback.
Parameters
- playCachedBuffer
- Duration that buffered data can support playback, in milliseconds.