setAudioMixingPlaybackSpeed method
Sets the playback speed of the current music file.
Since v4.2.0
Parameter speed
The playback speed. Agora recommends that you limit this value to between 50
and 400
, defined as follows:
50
: Half the original speed.100
: The original speed.400
: 4 times the original speed.
Note: Call this method after calling startAudioMixing and receiving the RtcEngineEventHandler.audioMixingStateChanged event callback with state code AudioMixingStateCode.Playing.
Implementation
@override
Future<void> setAudioMixingPlaybackSpeed(int speed) {
return _invokeMethod('setAudioMixingPlaybackSpeed', {
'speed': speed,
});
}