updateSelfPosition method
@valid since 3.52 @detail api @author wangjunzheng @brief Sets the coordinate and orientation of the local user as a listener in the rectangular coordinate system the local user built to achieve expected spatial audio effects. @param positionInfo Information on the local user's position. Refer to PositionInfo{@link #PositionInfo} for details. @return - 0: Success. - <0: Failure. - -2: Failure. The reason is that any two of the 3D coordinate vectors of your position are not perpendicular to each other. @note - You need to call this API after joining the room. - Before calling this API, you should call enableSpatialAudio{@link #ISpatialAudio#enableSpatialAudio} first to enable the spatial audio function. - The settings made locally will not influence other users' spatial audio experience.
Implementation
FutureOr<int> updateSelfPosition(PositionInfo positionInfo) async {
return await nativeCall('updateSelfPosition', [positionInfo]);
}