pause method

Future<void> pause()

Pauses the playback of the video. Use play to resume the playback from the paused position.

NOTE: This method might throw an exception if the video cannot be paused.

Implementation

Future<void> pause() async {
  await _api.pause();
  _stopPlaybackPositionTimer();
  onPlaybackStatusChanged.value = PlaybackStatus.paused;
}