Skip to content

fix: improve audio focus handling and seek position accuracy#2021

Merged
theovilardo merged 1 commit into
masterfrom
fix/seekbar-not-responding
May 16, 2026
Merged

fix: improve audio focus handling and seek position accuracy#2021
theovilardo merged 1 commit into
masterfrom
fix/seekbar-not-responding

Conversation

@theovilardo
Copy link
Copy Markdown
Owner

Refines audio focus management in DualPlayerEngine to prevent contention races and support delayed gain. Updates PlaybackStateHolder to fix UI "snap-back" during backward seeks and adds a timeout for stale position overrides.

  • Retain audio focus during user-initiated pauses to avoid re-acquisition races.
  • Support AUDIOFOCUS_REQUEST_DELAYED in DualPlayerEngine.
  • Implement a 4-second expiration for paused position overrides in PlaybackStateHolder.
  • Fix a bug where backward seeks while paused would prematurely revert to the old position.
  • Clean up reset logic for position overrides and cold-start snapshots.

Refines audio focus management in `DualPlayerEngine` to prevent contention races and support delayed gain. Updates `PlaybackStateHolder` to fix UI "snap-back" during backward seeks and adds a timeout for stale position overrides.

- Retain audio focus during user-initiated pauses to avoid re-acquisition races.
- Support `AUDIOFOCUS_REQUEST_DELAYED` in `DualPlayerEngine`.
- Implement a 4-second expiration for paused position overrides in `PlaybackStateHolder`.
- Fix a bug where backward seeks while paused would prematurely revert to the old position.
- Clean up reset logic for position overrides and cold-start snapshots.
@theovilardo theovilardo merged commit 11f1a9b into master May 16, 2026
4 checks passed
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.

1 participant