setEffectPosition method Null safety
设置指定音效文件的播放位置。
自从 v4.0.1
成功设置后,本地音效文件会在指定位置开始播放。
Note
该方法需要在 RtcEngine.playEffect 后调用。
Parameter soundId
音效 ID。请确保与 playEffect
中设置的 soundId
一致。
Parameter pos
音效文件的播放位置,单位为毫秒。
Implementation
@override
Future<void> setEffectPosition(int soundId, int pos) {
return _invokeMethod('setEffectPosition', {
'soundId': soundId,
'pos': pos,
});
}