setRemoteAudioPlaybackVolume abstract method

Future<int?> setRemoteAudioPlaybackVolume({
  1. required String roomId,
  2. required String uid,
  3. required int volume,
})

Adjusts the audio playback volume from the remote user.

roomId: ID of the room where the specified remote user is in.

uid: ID of the user who publishes the audio.

volume: Ratio(%) of capture volume to original volume with a range of [0, 400].
This changes the volume property of the audio data other than the hardware volume.
For better call quality, it is recommended to set the volume value to [0,100].

  • 0: Mute.
  • 100: Original volume.
  • 400: Four times the original volume with signal-clipping protection.

See ReturnStatus for return values.

Suppose a remote user A is always within the range of the target user whose playback volume will be adjusted:

Implementation

Future<int?> setRemoteAudioPlaybackVolume({
  required String roomId,
  required String uid,
  required int volume,
});