play method

Future<bool> play()

Starts/resumes the playback of the video.

Implementation

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