Closed kuwapa closed 7 years ago
I haven't seen this before, which device you are testing on?
Oh you didn't? I was testing on a OnePlus X. However, the previous logic calculated time from the epoch time (1970), so it wasn't giving the correct results.
All right, I will copy and paste it as the project structure is changed. Many thanks.
Setting the time in milliseconds to the Calender object was setting the milliseconds from the start time in 1970. That was causing the error of showing incorrect time in minutes and hours. Like when the video is of 2m duration, the timer started from 00:30:00 till 00:32:00. So, used the solution from here to format the milliseconds into hh:mm:ss format.