setEffectPosition method
Sets the playback position of an audio effect file.
Since v3.4.2
After a successful setting, the local audio effect file starts playing at the specified position.
Note
- Call this method after RtcEngine.playEffect.
Parameter soundId
Audio effect ID. Ensure that this parameter is set to the same value as in playEffect
.
Parameter pos
The playback position (ms) of the audio effect file.
Implementation
@override
Future<void> setEffectPosition(int soundId, int pos) {
return _invokeMethod('setEffectPosition', {'soundId': soundId, 'pos': pos});
}