setLoopCount abstract method

Future<void> setLoopCount(
  1. int loopCount
)

Sets the loop playback.

If you want to loop, call this method and set the number of the loops. When the loop finishes, the SDK triggers onPlayerSourceStateChanged and reports the playback state as playerStatePlaybackAllLoopsCompleted.

  • loopCount The number of times the audio effect loops:

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.

Implementation

Future<void> setLoopCount(int loopCount);