play method

Future<void> play()

Play the video.

Implementation

Future<void> play() async {
  _isAutoPause = false;

  // When video changes, the new video has to be muted.
  if (_isMute && _videoPlayerController!.value.volume != 0) {
    _videoPlayerController!.setVolume(0);
  }

  await _videoPlayerController!.play();
  _flickManager.flickDisplayManager!.handleShowPlayerControls();
  _notify();
}