muteCtrlFunction method

dynamic muteCtrlFunction()

mute un mute function

Implementation

muteCtrlFunction() {
  double volume = videoPlayerController!.value.volume;
  if (volume == 0) {
    videoPlayerController!.setVolume(1);
    muteCtrlIcon = playerControls!.muteIcon;
  } else if (volume <= 1) {
    videoPlayerController!.setVolume(0);
    muteCtrlIcon = playerControls!.unMuteIcon;
  }
  notifyListeners();
}