videoMute method

dynamic videoMute()

Implementation

videoMute() async {
  debugPrint("isOneToOneCall : $isOneToOneCall");
  if (await AppPermission.askVideoCallPermissions(context)) {
    if (callType.value != CallType.audio) {
      Mirrorfly.muteVideo(status: !videoMuted.value, flyCallBack: (_) {});
      videoMuted(!videoMuted.value);
    } else if (callType.value == CallType.audio &&
        isOneToOneCall &&
        MirrorflyUikit.instance.navigationManager.getCurrentRoute() !=
            Constants.onGoingCallView) {
      showVideoSwitchPopup();
    } else if (isGroupCall) {
      Mirrorfly.muteVideo(
        status: !videoMuted.value,
        flyCallBack: (_) {},
      );
      videoMuted(!videoMuted.value);
    }
  }
}