adjustUserPlaybackSignalVolume method Null safety
Adjust the playback volume of local streams received from from a specified remote user.
After you join a room, you can call the method to set the playback volume of local streams received from different remote users or repeatedly adjust the playback volume of audio stream received from a specified remote user.
Call this method after you join a room. The method is valid in the current call. If a remote user exits the room and rejoins the room again, the setting is still valid untill the call ends. The method adjusts the volume of the mixing audio published by a specified remote user. Only one remote user can be adjusted. If you want to adjust multiple remote users, you need to call the method for the required times.
uid ID of a remote user. volume specifies the playback volume. Valid values: 0 to 100.
Implementation
Future<int> adjustUserPlaybackSignalVolume(int uid, int volume) async {
IntValue reply = await _api
.adjustUserPlaybackSignalVolume(AdjustUserPlaybackSignalVolumeRequest()
..uid = uid
..volume = volume);
return reply.value ?? -1;
}