preloadAudioMixing abstract method

  1. @Deprecated('Deprecated since v3.54.1, use RTCAudioEffectPlayer.preload instead')
Future<void> preloadAudioMixing({
  1. required int mixId,
  2. required String filePath,
})

Preloads the audio file into memory to minimize the loading cost of playing repeatedly.

If you call RTCAudioMixingManager.startAudioMixing first and then call this API with the same ID, the previous mixing task will be stopped, and then the next file will be loaded.
After calling this API to preload A.mp3, if you need to call RTCAudioMixingManager.startAudioMixing to play B.mp3 with the same ID, make sure to call RTCAudioMixingManager.unloadAudioMixing to unload A.mp3 first.

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.
Audio file formats supported by different platforms are as follows:

mp3mp4aacm4a3gpwavogg
AndroidYYYYYYY
iOSYYYYYY

Notes:

Implementation

@Deprecated(
    'Deprecated since v3.54.1, use RTCAudioEffectPlayer.preload instead')
Future<void> preloadAudioMixing({
  required int mixId,
  required String filePath,
});