Skip to content

Hide the buffering spinner during seeks - #2151

Merged
anilbeesetti merged 1 commit into
mainfrom
fix/issue-2148
Nov 28, 2026
Merged

anilbeesetti merged 1 commit into
mainfrom
fix/issue-2148

Conversation

@anilbeesetti

Copy link
Copy Markdown
Owner

Summary

Double-tapping to skip or dragging to seek could flash the loading spinner. Hide it while the seek buffers and show it during startup and ordinary playback stalls.

- Show the spinner whenever playback is buffering
+ Show the spinner when playback is buffering outside a seek

Fixes #2148

Evidence

  • Before the fix, MediaPresentationStateTest failed because seek buffering showed the spinner. It passes with the fix and also checks that the spinner returns for ordinary buffering.
  • ./gradlew :feature:player:testDebugUnitTest :feature:player:ktlintCheck :app:assembleDebug passed with 190 player tests.
  • Android 15 (API 35) emulator, local MP4. Double-tap and horizontal drag moved playback forward without a visible spinner. Seek-bar dragging moved playback to the new position.

Merge Danger

Door Two-way. Reverting restores the previous spinner behavior.

Blast radius Player buffering indicator.

Created with gpt-6.2-sol in Codex through T3 Code.

Track seek discontinuities in the player presentation state so seek buffering does not flash the loading indicator. Cover normal buffering and listener disposal.

Fixes #2148
@anilbeesetti
anilbeesetti merged commit 6e59ba2 into main Nov 28, 2026
2 checks passed
SeveriT pushed a commit to SeveriT/Overtime-Android that referenced this pull request Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Skipping forward take a decade to load

1 participant