getAudioMixingDuration abstract method

  1. @Deprecated('Deprecated since v3.54, use RTCAudioEffectPlayer.getDuration and RTCMediaPlayer.getTotalDuration instead')
Future<int?> getAudioMixingDuration(
  1. int mixId
)

获取音乐文件时长 (ms)

返回值:接口调用结果

  • >0:成功,返回音乐文件时长;
  • <0:失败

注意:调用本方法获取音乐文件时长前,需要先调用 RTCAudioMixingManager.preloadAudioMixingRTCAudioMixingManager.startAudioMixing

Implementation

@Deprecated(
    'Deprecated since v3.54, use RTCAudioEffectPlayer.getDuration and RTCMediaPlayer.getTotalDuration instead')
Future<int?> getAudioMixingDuration(int mixId);