setProgressInterval method
@detail api
@brief Set the interval of the periodic callback onMediaPlayerPlayingProgress{@link #IMediaPlayerEventHandler#onMediaPlayerPlayingProgress} during audio mixing.
@param 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
- 0: Success.
- < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details.
@note
- Call this API only when audio is mixing.
- This API is valid for audio file, not PCM data.
Implementation
FutureOr<int> setProgressInterval(long interval) async {
return await nativeCall('setProgressInterval', [interval]);
}