mirror of
https://github.com/jellyfin/jellyfin-androidtv.git
synced 2025-05-17 19:36:03 +08:00
fix seekbar not updating when using ff/rw buttons
(cherry picked from commit 4a4efb246787c050e491b008835fc6f257cd9d01)
This commit is contained in:

committed by
Niels van Velzen

parent
8148850206
commit
3da856ec23
@ -410,7 +410,7 @@ public class PlaybackController implements PlaybackControllerNotifiable {
|
||||
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()) {
|
||||
@ -1270,9 +1270,7 @@ public class PlaybackController implements PlaybackControllerNotifiable {
|
||||
|
||||
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());
|
||||
|
||||
|
Reference in New Issue
Block a user