onProgressDragStart method

void onProgressDragStart()

Implementation

void onProgressDragStart() async {
  if (_dispose) {
    return;
  }

  _wasPlayingBeforePause = videoPlayerValue?.isPlaying ?? false;
  if (_wasPlayingBeforePause) {
    await pause();
  }
}