setAudioMixingPlaybackSpeed abstract method

  1. @Deprecated('Deprecated since v3.54, use RTCMediaPlayer.setPlaybackSpeed instead')
Future<int?> setAudioMixingPlaybackSpeed({
  1. required int mixId,
  2. required int speed,
})

设置混音时音乐文件的播放速度

speed 播放速度与原始文件速度的比例,单位:%,取值范围为 [50,200],默认值为 100
超出取值范围设置失败,你会收到 RTCVideoEventHandler.onAudioMixingStateChanged 回调,提示 AudioMixingState 状态为 failed 混音播放失败,AudioMixingError 错误码为 invalidPlaybackSpeed 混音文件播放速度设置无效。

注意:

Implementation

@Deprecated(
    'Deprecated since v3.54, use RTCMediaPlayer.setPlaybackSpeed instead')
Future<int?> setAudioMixingPlaybackSpeed({
  required int mixId,
  required int speed,
});