setPlaySpeed abstract method

Future<void> setPlaySpeed(
  1. int audioEffectID,
  2. double speed
)

Set the playback speed for a given audio effect. Both the local play speed and the publish speed are set. (separate settings are not supported).

Available since: 2.18.0 Description: Set the playback speed for a given audio effect. Both the local play speed and the publish speed are set. (separate settings are not supported). When to call: The specified audioEffectID is start. Restrictions: None.

  • audioEffectID ID for the audio effect.
  • speed The speed of play.
    Value range: The range is 0.5 ~ 2.0.
    Default value: The default is 1.0.

Implementation

Future<void> setPlaySpeed(int audioEffectID, double speed);