preloadEffect method
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});
}