easyar_Recorder - record duration

0 votes
asked Mar 25, 2018 by julapy (250 points)
hi, what is the best way to determine the record duration in seconds?

i need to update a progress bar while easyar_Recorder is recording.


1 Answer

0 votes
answered Mar 26, 2018 by albert52 (31,850 points)
Are you the Unity developer? Use Time.time in the Update () func.
commented Mar 26, 2018 by julapy (250 points)
no sorry, forgot to mention that im on iOS

i did manage to implement using the` [GLKViewController update]` function.
then in there working out the duration by the below.
`NSTimeInterval recordTime = [[NSDate date] timeIntervalSinceDate: recordStartTime];`
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.