destroyVideoPlayerController method

void destroyVideoPlayerController()

销毁播放器

Implementation

void destroyVideoPlayerController() {
  detachVideoPlayerController();

  if (_isCreateVideoPlayerController) {
    value.videoPlayerController?.dispose();
  }

  if (_dispose) {
    return;
  }

  // 更新数据
  value = value.removeVideoPlayerController();
}