fix(video-player): fixes looping video Seekbar and timestamp going on indefinitely as video restarts
This commit is contained in:
parent
af60c8ba4a
commit
77e2c6c09f
|
@ -602,7 +602,7 @@ public class PhotoViewer implements ZoomPanView.Listener{
|
|||
|
||||
private void updateVideoPosition(){
|
||||
if(videoPositionNeedsUpdating){
|
||||
int currentPosition=videoInitialPosition+(int)(SystemClock.uptimeMillis()-videoInitialPositionTime);
|
||||
int currentPosition=(videoInitialPosition+(int)(SystemClock.uptimeMillis()-videoInitialPositionTime))%videoDuration;
|
||||
videoSeekBar.setProgress(Math.round((float)currentPosition/videoDuration*10000f));
|
||||
updateVideoTimeText(currentPosition);
|
||||
windowView.postOnAnimation(videoPositionUpdater);
|
||||
|
|
Loading…
Reference in New Issue