setAudioMixingPlaybackSpeed abstract method

Future<void> setAudioMixingPlaybackSpeed(
  1. int speed
)

Sets the playback speed of the current audio file.

Ensure you call this method after calling startAudioMixing receiving the onAudioMixingStateChanged callback reporting the state as audioMixingStatePlaying.

  • speed The playback speed. Agora recommends that you set this to a value between 50 and 400, defined as follows: 50: Half the original speed. 100: The original speed. 400: 4 times the original speed.

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> setAudioMixingPlaybackSpeed(int speed);