setPlaybackSpeed abstract method

Future<void> setPlaybackSpeed(
  1. int speed
)

Sets the playback speed of the current audio file.

You need to call this method after open.

  • speed Playback speed. Recommended range is 30, 400, where: 30: 0.3x 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. See Error Codes for details and resolution suggestions.

Implementation

Future<void> setPlaybackSpeed(int speed);