setCurrentDeviceMute method
Set the mute status of the current device (Support for macOS and Windows platforms)
Parameters:
type Device type, which specifies the type of devices to be obtained. For more information, please see the definition of TXMediaDeviceType. type can only be TRTCCloudDef.TXMediaDeviceTypeMic or TRTCCloudDef.TXMediaDeviceTypeSpeaker.
mute Whether to mute/freeze
Return:
0: success; negative number: failure
Implementation
Future<int?> setCurrentDeviceMute(int type, bool mute
) async {
var result = await _channel.invokeMethod('setCurrentDeviceMute', {
"type": type,
"mute": mute
});
return V2TXLiveFlutterResult.intValue(result);
}