getCurrentDeviceVolume method
- int type
获取当前设备的音量
注意:此接口只支持Mac和Windows平台
参数:
type
设备类型,指定需要获取哪种设备的列表。详见TXMediaDeviceType定义,type 只支持 TXMediaDeviceTypeMic、TXMediaDeviceTypeSpeaker。
返回值: 音量大小
Implementation
Future<int?> getCurrentDeviceVolume(int type
) async {
var result = await _channel.invokeMethod('getCurrentDeviceVolume', {
"type": type
});
return V2TXLiveFlutterResult.intValue(result);
}