Martin20150405 / Pano360

Pure Java library to play 360 degree panorama video / photo (VR video) on Android. Using OpenGL ES 2.0 -安卓全景视频/图片播放器
MIT License
625 stars 170 forks source link

Fixed logic to get the timer show time based on the milliseconds input. #10

Closed kuwapa closed 7 years ago

kuwapa commented 7 years ago

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.

Martin20150405 commented 7 years ago

I haven't seen this before, which device you are testing on?

kuwapa commented 7 years ago

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.

Martin20150405 commented 7 years ago

All right, I will copy and paste it as the project structure is changed. Many thanks.