menu
volc_engine_rtc package
documentation
api/bytertc_audio_effect_player_api.dart
RTCAudioEffectPlayer
getDuration abstract method
getDuration abstract method
dark_mode
light_mode
getDuration
abstract method
Future
<
int
?
>
getDuration
(
int
effectId
)
获取音效文件时长。
返回值:
>0
:成功, 音效文件时长,单位为毫秒。
<0
:失败。
仅在调用
RTCAudioEffectPlayer.start
后调用此接口。
Implementation
Future<int?> getDuration(int effectId);
volc_engine_rtc package
documentation
api/bytertc_audio_effect_player_api
RTCAudioEffectPlayer
getDuration abstract method
RTCAudioEffectPlayer class