updatePosition abstract method

Future<void> updatePosition(
  1. int audioEffectID,
  2. Float32List position
)

Update the position of the audio effect player (audio source).

Available since: 3.6.0 Description: Update the position of the audio effect player (audio source). Use cases: The audio effect player also needs to have 3D spatial sound. When to call: Listen to the onAudioEffectPlayStateUpdate callback, please call this interface after the player state is ZegoAudioEffectPlayState.Playing and before ZegoAudioEffectPlayState.NoPlay/PlayEnded. Restrictions: This interface needs to be used in conjunction with the RangeAudio/RangeScene module. This interface can only be called successfully after the RangeAudio/RangeScene module enables 3D sound effects.

  • audioEffectID ID for the audio effect.
  • position The unit vector of the front axis of its own coordinate system. The parameter is a float array with a length of 3.

Implementation

Future<void> updatePosition(int audioEffectID, Float32List position);