muteVideoAction method

void muteVideoAction()

Implementation

void muteVideoAction() {
  if (_isOffSeatInSeatMode()) {
    return;
  }

  if (_store.currentUser.hasVideoStream.value) {
    _engineManager.closeLocalCamera();
    return;
  }
  if (_store.roomInfo.isCameraDisableForAllUser &&
      _store.currentUser.userRole.value == TUIRole.generalUser) {
    makeToast(msg: 'disableVideoRoomReason'.roomTr);
    return;
  }
  _engineManager.openLocalCamera();
}