setAudioMixingPlaybackSpeed abstract method

Future<void> setAudioMixingPlaybackSpeed(
  1. int speed
)

Sets the playback speed of the current music file.

You must call this method after startAudioMixing and after receiving the onAudioMixingStateChanged callback reporting the playback state as audioMixingStatePlaying.

  • speed The playback speed of the music file. The recommended range is 50, 400, where: 50: 0.5x speed. 100: Original speed. 400: 4x 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);