stop method

Future<bool> stop()

Stops the playback of the video.

Implementation

Future<bool> stop() async {
  try {
    await _channel.invokeMethod("player#stop");
    _stopProgressTimer();
    _resetProgressPosition();
    _videoViewState.notifyControlChanged(_MediaControl.stop);
    return true;
  } catch (ex) {
    debugPrint("$ex");
  }
  return false;
}