getPosition method
@detail api @brief Gets the current position of audio effect file playback. @param effectId Audio effect ID @return - >0: Success, the current progress of audio effect file playback in milliseconds. - < 0: Failure. @note - When playing online files, calling this API may cause a delay in playback. - Call this API after start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config}.
Implementation
FutureOr<int> getPosition(int effectId) async {
return await nativeCall('getPosition:', [effectId]);
}