setAudioDeviceVolume method
- ZegoAudioDeviceType deviceType,
- String deviceID,
- int volume
Set volume for the specified audio device.
The direct operating system device may fail due to system restrictions. Please use setCaptureVolume
and setPlayVolume
first to adjust the volume of publish and play streams.
Only for Windows / macOS / Linux
deviceType
Audio device typedeviceID
ID of a device obtained by getAudioDeviceListvolume
Device volume
Implementation
Future<void> setAudioDeviceVolume(
ZegoAudioDeviceType deviceType, String deviceID, int volume) async {
return await ZegoExpressImpl.instance
.setAudioDeviceVolume(deviceType, deviceID, volume);
}