setAudioDeviceVolume method

Future<void> setAudioDeviceVolume(
  1. ZegoAudioDeviceType deviceType,
  2. String deviceID,
  3. 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 type
  • deviceID ID of a device obtained by getAudioDeviceList
  • volume Device volume

Implementation

Future<void> setAudioDeviceVolume(
    ZegoAudioDeviceType deviceType, String deviceID, int volume) async {
  return await ZegoExpressImpl.instance
      .setAudioDeviceVolume(deviceType, deviceID, volume);
}