setPosition abstract method
Sets the start position of the audio effect file.
position
: The starting playback position of the audio effect file in milliseconds.
You can get the total duration of the audio effect file by calling RTCAudioEffectPlayer.getDuration, the value of position should be less than the total duration of the audio effect file.
Return value:
0
: Success.<0
: Failure.
Notes:
- When playing online files, calling this API may cause a delay in playback.
- Call this API after RTCAudioEffectPlayer.start.
Implementation
Future<int?> setPosition(
int effectId, {
required int position,
});