stop method
Stops the playback of the video. The playback position is reset to 0. Use play to start the playback from the beginning.
NOTE: This method might throw an exception if the video cannot be stopped.
Implementation
Future<void> stop() async {
await _api.stop();
_stopPlaybackPositionTimer();
onPlaybackStatusChanged.value = PlaybackStatus.stopped;
await _onPlaybackPositionTimerChanged(null);
}