getAudioMixingPlaybackDuration abstract method
- @Deprecated('Deprecated since v3.54.1, use RTCMediaPlayer.getPlaybackDuration instead')
- int mixId
Gets the actual time played of the audio file.
Return value:
>0
: The actual time played(in millisecond).<0
: Failure.
Notes:
- The actual time played excludes the time when the file is paused, sped up, rewound, and fast-forwarded. For example, if a song plays the first 1:30 minutes and plays another 2 minutes after being paused for 30 seconds or fast-forwarded to 2:00,the actual time played will be 3.5 minutes.
- Before calling this API, you must call RTCAudioMixingManager.startAudioMixing to play the audio file.
Implementation
@Deprecated(
'Deprecated since v3.54.1, use RTCMediaPlayer.getPlaybackDuration instead')
Future<int?> getAudioMixingPlaybackDuration(int mixId);