getCurrentDeviceMute method
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.
- Parameters:
- type(TXMediaDeviceType):
- Device type.
- type(TXMediaDeviceType):
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;
}
}