removeRemotePosition abstract method

Future<void> removeRemotePosition(
  1. int uid
)

Deletes the spatial position information of the specified remote user.

After this method is successfully called, the local user will no longer hear the specified remote user. After leaving the channel, to avoid wasting computing resources, you need to call this method to delete the spatial position information of the specified remote user. Otherwise, the user's spatial position information will continue to be stored. When the number of remote users exceeds the number of audio streams set in setMaxAudioRecvCount, the SDK will automatically unsubscribe from the audio streams of the farthest users based on relative distance.

  • uid User ID. Must match the user ID used when joining the channel.

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. See Error Codes for details and resolution suggestions.

Implementation

Future<void> removeRemotePosition(int uid);