setSpatialAudioParams abstract method
Enables or disables the spatial audio effect for the media player.
After successfully setting the spatial audio effect parameters of the media player, the SDK enables the spatial audio effect for the media player, and the local user can hear the media resources with a sense of space. If you need to disable the spatial audio effect for the media player, set the params parameter to null.
params
The spatial audio effect parameters of the media player. See SpatialAudioParams.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.
Implementation
Future<void> setSpatialAudioParams(SpatialAudioParams params);