setCurrentDeviceMute method
Muting the current device (for desktop OS)
This API is used to mute the mic or speaker, but not the camera.
- Parameters:
- type(TXMediaDeviceType):
- Device type.
- mute(bool):
- type(TXMediaDeviceType):
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;
}
}