setAudioMixingPosition abstract method

Future<void> setAudioMixingPosition(
  1. int pos
)

Sets the playback position of the music file.

This method sets the playback position of the audio file, allowing you to play the file based on actual needs instead of playing it from start to finish.

  • pos Integer. The position on the progress bar, in milliseconds.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.

Implementation

Future<void> setAudioMixingPosition(int pos);