setAudioMixingProgressInterval abstract method
- @Deprecated('Deprecated since v3.54.1, use RTCMediaPlayer.setProgressInterval instead')
Sets the interval of callbacks about audio file playback progress during audio mixing.
You can set the interval for multiple IDs by calling this method multiple times and passing in different mixId
s.
interval
The time interval (ms) of the audio file playback progress callback in milliseconds.
- The value of interval is a multiple of 10 greater than 0. When the value set is not divisible by 10, the default is rounded up by 10. For example, if the value is set to 52ms, it will be automatically adjusted to 60ms, then the SDK will trigger
onAudioMixingPlayingProgress
callback at the set interval. - If the value is less than or equals to 0, the callback will not be triggered.
Notes:
- Call this API between RTCAudioMixingManager.startAudioMixing and RTCAudioMixingManager.stopAudioMixing.
- If you want to set the interval of playback progress callbacks before the music file starts playing, you need to call RTCAudioMixingManager.startAudioMixing to set the interval in AudioMixingConfig, and you can update the callback interval through this method after the audio file starts playing.
Implementation
@Deprecated(
'Deprecated since v3.54.1, use RTCMediaPlayer.setProgressInterval instead')
Future<void> setAudioMixingProgressInterval({
required int mixId,
required int interval,
});