play method

Future<void> play()

Starts/resumes the playback of the video.

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

Implementation

Future<void> play() async {
  await _api.play();
  _startPlaybackPositionTimer();
  onPlaybackStatusChanged.value = PlaybackStatus.playing;
  await setPlaybackSpeed(_playbackSpeed);
}