setPosition abstract method

Future<int?> setPosition(
  1. int effectId, {
  2. required int position,
})

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:

Implementation

Future<int?> setPosition(
  int effectId, {
  required int position,
});