onPlayBufferUpdated property

void Function(int volume)? onPlayBufferUpdated
final

Reports the playable duration of buffered data.

While playing online media resources, the SDK triggers this callback every second to report the duration that the current buffered data can support. If the buffered duration is less than the threshold (default is 0), playerEventBufferLow (6) is returned. If the buffered duration is greater than the threshold (default is 0), playerEventBufferRecover (7) is returned.

  • playCachedBuffer The duration (in milliseconds) that the current buffered data can support playback.

Implementation

final void Function(int playCachedBuffer)? onPlayBufferUpdated;