setProgressInterval abstract method

Future<void> setProgressInterval(
  1. int millisecond
)

Set playback progress callback interval.

This function can control the callback frequency of onMediaPlayerPlayingProgress. When the callback interval is set to 0, the callback is stopped. The default callback interval is 1s This callback are not returned exactly at the set callback interval, but rather at the frequency at which the audio or video frames are processed to determine whether the callback is needed to call

  • millisecond Interval of playback progress callback in milliseconds

Implementation

Future<void> setProgressInterval(int millisecond);