preloadEffect method

  1. @override
Future<void> preloadEffect(
  1. int soundId,
  2. String filePath
)

Preloads a specified audio effect file into the memory.

Supported audio formats: mp3, aac, m4a, 3gp, wav.

Note

  • This method does not support online audio effect files.

Note

  • To ensure smooth communication, limit the size of the audio effect file. We recommend using this method to preload the audio effect before calling the RtcEngine.joinChannel method.

Parameter soundId ID of the audio effect. Each audio effect has a unique ID.

Parameter filePath Absolute path of the audio effect file.

Implementation

@override
Future<void> preloadEffect(int soundId, String filePath) {
  return _invokeMethod(
      'preloadEffect', {'soundId': soundId, 'filePath': filePath});
}