videoInitialize method

dynamic videoInitialize()

Implementation

videoInitialize() async {
  ///set icons
  playCtrlIcon = playerControls!.playIcon;
  muteCtrlIcon = playerControls!.muteIcon;
  if(playerControls!.mute){
    muteCtrlIcon = playerControls!.unMuteIcon;
  }
  ///video player config
  videoPlayerController =
      VideoPlayerController.network(playerControls!.videoUrl);
  await videoPlayerController!.initialize();
  videoPlayerController!.play();
  videoPlayerController!.setLooping(playerControls!.looping);
  ///function visible
  setFunctionVisible();

  ///video init settings
  videoInitSettings();

  videoPlayerController!.addListener(() {
    isVideoEndCheck();
    isVideoPlaying();
    getVideoPositionalValues();
  });
  notifyListeners();
}