onPlayBufferUpdated
Reports the playback duration supported by the buffered data.
virtual void onPlayBufferUpdated(int64_t playCachedBuffer) = 0;
When playing online media resources, the SDK triggers this callback every two seconds to report the playback duration supported by the current buffered data.
- When the buffered playback duration is less than the threshold (default is 0), the SDK returns
PLAYER_EVENT_BUFFER_LOW(6). - When the buffered playback duration exceeds the threshold (default is 0), the SDK returns
PLAYER_EVENT_BUFFER_RECOVER(7).
Trigger Timing
When playing online media resources, the SDK triggers this callback every two seconds.
Parameters
- playCachedBuffer
- Playback duration supported by the buffered data, in milliseconds.