startAudioMixing abstract method

  1. @Deprecated('Deprecated since v3.54.1, use RTCAudioEffectPlayer.start, RTCMediaPlayer.open and RTCMediaPlayer.start instead')
Future<void> startAudioMixing({
  1. required int mixId,
  2. required String filePath,
  3. required AudioMixingConfig config,
})

Starts mixing audio files.

mixId is used for identifying the mixing task. If you have already preloaded the file in memory with RTCAudioMixingManager.preloadAudioMixing, please ensure that the mixID is the same. If this API is repeatedly called with the same ID, the previous mixing task will be stopped and a new task will start. When the previous task is stopped, you will receive RTCVideoEventHandler.onAudioMixingStateChanged.

filePath is the path of the mixing audio file. You can use the URL of the online file, and the absolute path of the local file. For the URL of the online file, only https protocol is supported. Recommended audio sample rates: 8KHz, 16KHz, 22.05KHz, 44.1KHz, 48KHz. Local audio file formats supported by different platforms are as follows:

mp3mp4aacm4a3gpwavoggtswma
AndroidYYYYYYY
iOSYYYYYY
Online audio file formats supported by different platforms are as follows:
mp3mp4aacm4a3gpwavoggtswma
AndroidYYYYY
iOSYYYY

Notes:

Implementation

@Deprecated(
    'Deprecated since v3.54.1, use RTCAudioEffectPlayer.start, RTCMediaPlayer.open and RTCMediaPlayer.start instead')
Future<void> startAudioMixing({
  required int mixId,
  required String filePath,
  required AudioMixingConfig config,
});