setRemoteUserSpatialAudioParams abstract method
Future<void>
setRemoteUserSpatialAudioParams({
- required int uid,
- required SpatialAudioParams params,
Sets the spatial audio parameters for a remote user.
This method must be called after enableSpatialAudio. After successfully setting the spatial audio parameters for the remote user, the local user will perceive spatial sound from the remote user.
uidUser ID. Must match the user ID used when joining the channel.paramsSpatial audio parameters. See SpatialAudioParams.
Returns When the method call succeeds, there is no return value; when it fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.
Implementation
Future<void> setRemoteUserSpatialAudioParams(
{required int uid, required SpatialAudioParams params});