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
deviceTypeAudio device typedeviceIDID of a device obtained by getAudioDeviceListvolumeDevice volume
Implementation
Future<void> setAudioDeviceVolume(
ZegoAudioDeviceType deviceType, String deviceID, int volume) async {
return await ZegoExpressImpl.instance
.setAudioDeviceVolume(deviceType, deviceID, volume);
}