RTCSpatialAudio class abstract

Spatial audio instance

Constructors

RTCSpatialAudio()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

disableRemoteOrientation() Future<void>
Calling this API to neglect the orientation of the remote users. All remote users will be considered as facing the local user.
Calling RTCSpatialAudio.updateSelfPosition then will notify none of the remote users.
However, the local user can feel the change in audio effect brought about by their own orientation change when receiving audio.
enableSpatialAudio(bool enable) Future<void>
Enables/disables spatial audio function.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAllRemotePosition() Future<int?>
Valid since v3.56.1
removeRemotePosition(String uid) Future<int?>
Valid since v3.56.1
toString() String
A string representation of this object.
inherited
updateListenerOrientation(HumanOrientation orientation) Future<int?>
Updates the local user's orientation as a listener in the RTC room.
By calling this API, you can set the orientation of the local user as a listener different from the orientation as a sound source.
updateListenerPosition(Position pos) Future<int?>
Updates the local user's position as a listener in the RTC room.
By calling this API, you can set the position of the local user as a listener different from the position as a sound source.
updatePosition(Position pos) Future<int?>
Updates the coordinate of the local user's position in the rectangular coordinate system in the current room.
updateRemotePosition({required String uid, required PositionInfo positionInfo}) Future<int?>
Valid since v3.56.1
updateSelfOrientation(HumanOrientation orientation) Future<int?>
After the local user joins the room, call this API to update the orientation of the local user in the 3D coordinates for the spatial audio.
updateSelfPosition(PositionInfo positionInfo) Future<int?>
Valid since v3.56.1

Operators

operator ==(Object other) bool
The equality operator.
inherited