adjustUserPlaybackSignalVolume abstract method

Future<void> adjustUserPlaybackSignalVolume({
  1. required int uid,
  2. required int volume,
})

Adjusts the playback signal volume of a specified remote user.

You can call this method to adjust the playback volume of a specified remote user. To adjust the playback volume of different remote users, call the method as many times, once for each remote user. Call this method after joining a channel. The playback volume here refers to the mixed volume of a specified remote user.

  • uid The user ID of the remote user.
  • volume Audio mixing volume. The value ranges between 0 and 100. The default value is 100, which means the original volume.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.

Implementation

Future<void> adjustUserPlaybackSignalVolume(
    {required int uid, required int volume});