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 set this to a value between 30 and 400, defined as follows: 30: 0.3 times 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);