setRemoteAudioPlaybackVolume abstract method
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:
- If you use both this method and RTCRoom.setRemoteRoomAudioPlaybackVolume, the volume that the local user hears from user A is the volume set by the method called later.
- If you use both this method and RTCVideo.setPlaybackVolume, the volume that the local user hears from user A is the overlay of both settings.
Implementation
Future<int?> setRemoteAudioPlaybackVolume({
required String roomId,
required String uid,
required int volume,
});