Skip to content

Commit

Permalink
fix seekbar not updating when using ff/rw buttons
Browse files Browse the repository at this point in the history
(cherry picked from commit 4a4efb2)
  • Loading branch information
mueslimak3r authored and nielsvanvelzen committed Nov 1, 2022
1 parent 8148850 commit 3da856e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ private void refreshCurrentPosition() {
newPos = getRealTimeProgress();
// live tv
} else if (hasInitializedVideoManager()) {
if (!isPlaying() && mSeekPosition != -1) {
if (currentSkipPos != 0 || (!isPlaying() && mSeekPosition != -1)) {
newPos = mSeekPosition;
// use seekPosition until playback starts
} else if (isPlaying()) {
Expand Down Expand Up @@ -1270,9 +1270,7 @@ public void onError(Exception exception) {

public void skip(int msec) {
if (hasInitializedVideoManager() && (isPlaying() || isPaused()) && spinnerOff && mVideoManager.getCurrentPosition() > 0) { //guard against skipping before playback has truly begun
pause();
mHandler.removeCallbacks(skipRunnable);
stopReportLoop();
refreshCurrentPosition();
currentSkipPos = Utils.getSafeSeekPosition((currentSkipPos == 0 ? mCurrentPosition : currentSkipPos) + msec, getDuration());

Expand Down

0 comments on commit 3da856e

Please sign in to comment.