getCurrentDeviceMute method

bool getCurrentDeviceMute(
  1. TXMediaDeviceType type
)
override

Querying whether the current device is muted (for desktop OS)

This API is used to query whether the mic or speaker is muted. Camera muting is not supported.

Implementation

bool getCurrentDeviceMute(TXMediaDeviceType type) {
  if (_only_support_desktop) {
    return _deviceFFIBindings.get_current_device_mute(_nativePointer, type.value()) != 0;
  } else {
    debugPrint("device-manager-api not support");
    return false;
  }
}