setProgressInterval abstract method

Future<int?> setProgressInterval(
  1. int interval
)

Sets the interval of the periodic callback RTCMediaPlayerEventHandler.onMediaPlayerPlayingProgress during audio mixing.

interval: Interval in ms.

  • interval > 0: The callback is enabled. The actual interval is 10*(mod(10)+1).
  • interval <= 0: The callback is disabled.

Return value:

  • 0: Success.
  • <0: Failure.

Notes: Call this API only when audio is mixing.

Implementation

Future<int?> setProgressInterval(int interval);