menu
volc_engine_rtc package
documentation
api/bytertc_media_player_api.dart
RTCMediaPlayer
getTotalDuration abstract method
getTotalDuration abstract method
dark_mode
light_mode
getTotalDuration
abstract method
Future
<
int
?
>
getTotalDuration
(
)
获取音乐文件时长。
返回值:
>0
:成功, 音乐文件时长,单位为毫秒。
<0
:失败
仅在音频播放进行状态时,调用此方法。
Implementation
Future<int?> getTotalDuration();
volc_engine_rtc package
documentation
api/bytertc_media_player_api
RTCMediaPlayer
getTotalDuration abstract method
RTCMediaPlayer class