Skip to content

fix(web): suspend hidden metadata polling - #212

Merged
pitill0 merged 1 commit into
mainfrom
fix/background-metadata-polling
Aug 24, 2026
Merged

fix(web): suspend hidden metadata polling#212
pitill0 merged 1 commit into
mainfrom
fix/background-metadata-polling

Conversation

@pitill0

@pitill0 pitill0 commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • suspend Web metadata polling while the document is hidden;
  • discard stale metadata responses after a visibility transition;
  • refresh metadata immediately when active playback returns to the foreground;
  • prevent overlapping requests and polling timers;
  • keep audio playback and network recovery independent from metadata visibility;
  • update metadata lifecycle documentation and the Unreleased changelog.

Closes #211.

Validation

  • make gate
  • 893 tests passed
  • focused metadata visibility and JavaScript tests passed
  • manual mobile verification will follow after deployment

Manual verification

  • Start playback and confirm normal metadata updates.
  • Lock the mobile device or switch to another application.
  • Confirm that /api/metadata requests stop while FluxTuner is hidden.
  • Return to FluxTuner and confirm an immediate metadata refresh.
  • Confirm that audio continues playing throughout the visibility transition.
  • Confirm that paused or stopped playback does not restart metadata polling.

@pitill0
pitill0 merged commit d21a576 into main Aug 24, 2026
6 checks passed
@pitill0
pitill0 deleted the fix/background-metadata-polling branch August 30, 2026 17:39
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.

web: suspend metadata polling while the page is hidden

2 participants