setCurrentDeviceMute method

int setCurrentDeviceMute(
  1. TXMediaDeviceType type,
  2. bool mute
)
override

Muting the current device (for desktop OS)

This API is used to mute the mic or speaker, but not the camera.

Implementation

int setCurrentDeviceMute(TXMediaDeviceType type, bool mute) {
  if (_only_support_desktop) {
    return _deviceFFIBindings.set_current_device_mute(_nativePointer, type.value(), mute);
  } else {
    debugPrint("device-manager-api not support");
    return -1;
  }
}