onAudioMixingPlayingProgress method
@detail callback @author songxiaomeng.19 @brief Callback for playback progress of mixed audio files @param mixId ID of the mixing task @param progress The current playback progress (ms) of the mixed audio file @note After calling setAudioMixingProgressInterval to set the time interval to a value greater than 0, or calling startAudioMixing to set the time interval in AudioMixingConfigto a value greater than 0, the SDK will trigger the callback according to the set time interval.
Implementation
FutureOr<void> onAudioMixingPlayingProgress(
dynamic mixId, dynamic progress) async {
if ($instance == null || $instance is! IRTCEngineEventHandler) {
return;
}
return ($instance as IRTCEngineEventHandler)
.onAudioMixingPlayingProgress
?.call(int.tryParse(mixId.toString()) ?? 0,
int.tryParse(progress.toString()) ?? 0);
}