updateRemotePosition abstract method
Valid since v3.56.1
Sets the coordinate and orientation of the remote user as a speaker in the rectangular coordinate system of the local user. In this case, the local user hears from the remote user with the expected spatial audio effects.
uid
: User ID。
positionInfo
: Information on the remote user's position.
Return value:
0
: Success.<0
: Failure-2
: Failure. The reason is that each two of the 3D coordinate vectors of the position of the remote user are not perpendicular to each other.
Notes
- Call this API after creating the room.
- The settings made locally will not influence other users' spatial audio experience.
Implementation
Future<int?> updateRemotePosition({
required String uid,
required PositionInfo positionInfo,
});