getCurrentDeviceMute method
- int type
查询当前设备是否静音
注意:此接口只支持Mac和Windows平台
参数:
type 设备类型,指定需要获取哪种设备的列表。详见TXMediaDeviceType定义,type 只支持 TXMediaDeviceTypeMic、TXMediaDeviceTypeSpeaker。
返回值: true : 当前设备已静音;false : 当前设备未静音
Implementation
Future<bool?> getCurrentDeviceMute(int type
) async {
var result = _channel.invokeMethod('getCurrentDeviceMute', {
"type": type
});
return V2TXLiveFlutterResult.boolValue(result);
}