onAudioDeviceVolumeChanged method

void onAudioDeviceVolumeChanged(
  1. ZegoAudioDeviceType deviceType,
  2. String deviceID,
  3. int volume
)

The callback triggered when there is a change of the volume for the audio devices.

Available since: 1.1.0 Description: Audio device volume change event callback. When to trigger: After calling the startAudioDeviceVolumeMonitor function to start the device volume monitor, and the volume of the monitored audio device changes. Platform differences: Only supports Windows and macOS.

  • deviceType Audio device type
  • deviceID Audio device ID
  • volume audio device volume

Implementation

void onAudioDeviceVolumeChanged(
  ZegoAudioDeviceType deviceType,
  String deviceID,
  int volume,
) {}