updateRemotePosition abstract method

Future<void> updateRemotePosition({
  1. required int uid,
  2. required RemoteVoicePositionInfo posInfo,
})

Updates the spatial position information of a remote user.

After successfully calling this method, the SDK calculates spatial audio parameters based on the relative position of the local and remote users. You must call this method after joinChannel.

  • uid The user ID. It must be the same as the user ID used when the user joins the channel.
  • posInfo The spatial position information of the remote user. See RemoteVoicePositionInfo.

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> updateRemotePosition(
    {required int uid, required RemoteVoicePositionInfo posInfo});