onProgressDragEnd method
void
onProgressDragEnd()
Implementation
void onProgressDragEnd() async {
if (_dispose) {
return;
}
if (_wasPlayingBeforePause && videoPlayerValue?.isInitialized == true) {
_wasPlayingBeforePause = false;
// except seek to end.
final duration = videoPlayerValue?.duration ?? Duration.zero;
final position = videoPlayerValue?.position ?? Duration.zero;
if (duration != Duration.zero && duration > position) {
await play();
}
}
}