setPlaybackSpeed abstract method

Future<void> setPlaybackSpeed(
  1. int speed
)

Sets the channel mode of the current audio file.

Call this method after calling open.

  • speed The playback speed. Agora recommends that you limit this value to a range between 50 and 400, which is 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> setPlaybackSpeed(int speed);