spatialAudio property
RTCSpatialAudio
get
spatialAudio
Gets spatial audio instance.
See Spatial Audio for spatial audio-related APIs and call order.
API call result:
- RTCSpatialAudio: Success. You will get an RTCSpatialAudio returned from the SDK.
- null: Failure. The current SDK does not provide spatial audio function.
Notes:
- Only using real dual-channel playback device can users actually enjoy spatial audio effect.
- In case of poor network conditions, there is no spatial audio effect even if this function is enabled.
- Low-end device may have audio stalling issues due to its poor performance, so it is not recommended to enable spatial audio function on such kind of devices.
- No spatial audio effect in audio routing of Conference mode.
Implementation
RTCSpatialAudio get spatialAudio;