getDuration method
@detail api @brief Get the duration of the audio effect file. @param effectId Audio effect ID @return - >0: Success, the duration of the audio effect file in milliseconds. - < 0: failed. @note Call this API after start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config}.
Implementation
FutureOr<int> getDuration(int effectId) async {
return await nativeCall('getDuration:', [effectId]);
}