setAudioMixingPlaybackSpeed abstract method
- @Deprecated('Deprecated since v3.54.1, use RTCMediaPlayer.setPlaybackSpeed instead')
Sets the playback speed of the current audio file.
speed
: Ratio of playback speed to original speed in percentage. The range is [50,200]
, the default value is 100
.
Settings outside the range of values will fail and trigger RTCVideoEventHandler.onAudioMixingStateChanged.
Notes:
- You should call this API after calling RTCAudioMixingManager.startAudioMixing and receiving RTCVideoEventHandler.onAudioMixingStateChanged indicating that the AudioMixingState is
playing
and the AudioMixingError isok
. - If you call this API after calling RTCAudioMixingManager.stopAudioMixingor RTCAudioMixingManager.unloadAudioMixing, you will receive RTCVideoEventHandler.onAudioMixingStateChanged indicating that the AudioMixingState is
failed
and the AudioMixingError isidNotFound
.
Implementation
@Deprecated(
'Deprecated since v3.54.1, use RTCMediaPlayer.setPlaybackSpeed instead')
Future<int?> setAudioMixingPlaybackSpeed({
required int mixId,
required int speed,
});