setRemoteUserSpatialAudioParams abstract method

Future<void> setRemoteUserSpatialAudioParams({
  1. required int uid,
  2. required SpatialAudioParams params,
})

Sets the spatial audio effect parameters of the remote user.

Call this method after enableSpatialAudio. After successfully setting the spatial audio effect parameters of the remote user, the local user can hear the remote user with a sense of space.

  • uid The user ID. This parameter must be the same as the user ID passed in when the user joined the channel.
  • params The spatial audio parameters. See SpatialAudioParams.

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> setRemoteUserSpatialAudioParams(
    {required int uid, required SpatialAudioParams params});