Skip to content

Keep display awake during native video playback - #118

Merged
dfederm merged 1 commit into
mainfrom
dfederm/jellybox-playback-screen-wake-lock
Oct 7, 2026
Merged

dfederm merged 1 commit into
mainfrom
dfederm/jellybox-playback-screen-wake-lock

Conversation

@dfederm

@dfederm dfederm commented Oct 7, 2026

Copy link
Copy Markdown
Owner

What & why

Prevents Windows/Xbox from dimming or sleeping during active native JellyBox/Jellyfin video and local trailer playback by holding a UWP DisplayRequest while playback is opening, buffering, or playing. The request is released while paused, on completion or failure, and when navigating away; request failures are logged without stopping video. No UI layout or control changes.

Related issue: N/A (none identified).

Type of change

  • Bug fix
  • New feature
  • Refactor / cleanup
  • Build / tooling
  • Docs

Checklist

  • Single-purpose: this PR makes one logical change and does not club
    together unrelated changes.
  • Builds clean: msbuild JellyBox.sln -t:Build -p:Configuration=Debug -p:Platform=x64
    succeeds with 0 warnings and 0 errors.
  • UI/UX changes include screenshots or a short screen recording (focus
    and playback behavior can't be reviewed from the diff alone).
  • Manual testing is described below — including the platform tested
    on
    (real Xbox strongly preferred, Windows acceptable) — for any UI,
    playback, or controller change.
  • Linked the related issue above (if one exists).

Manual test notes

Manual playback and device-inactivity testing has not been performed. This PR remains a draft pending Windows or Xbox testing; no team review has been requested. Before requesting review, check native Jellyfin video and local trailers during opening, buffering, and playing, then verify that normal inactivity resumes on pause, completion, failure, and navigation away. Include track restarts, repeated cycles, and background/foreground transitions.

Validation performed on this commit:

  • & 'C:\Program Files\Microsoft Visual Studio\18\Enterprise\MSBuild\Current\Bin\MSBuild.exe' JellyBox.sln -t:Build -p:Configuration=Debug -p:Platform=x64 -verbosity:minimal -nologo — passed; 0 warnings and 0 errors.
  • git diff --check d740da07c87a734425d0101fe861960650b5ac7f HEAD — passed; no whitespace errors.
  • No automated tests are available in the repository.

Screenshots / recording

No screenshots or recording attached. There are no visual layout changes; playback and device-inactivity behavior still need device testing.

Out of scope / follow-ups

WebView trailers, HDMI and system-suspension behavior, and unrelated player hardening are out of scope.

Hold a UWP display request while video opens, buffers, or plays. Release it while paused and after completion, failure, or navigation away, with ownership guards for queued media callbacks.
@dfederm
dfederm marked this pull request as ready for review October 7, 2026 02:56
@dfederm
dfederm merged commit c87e0df into main Oct 7, 2026
1 check passed
@dfederm
dfederm deleted the dfederm/jellybox-playback-screen-wake-lock branch October 7, 2026 02:59
@dfederm
dfederm restored the dfederm/jellybox-playback-screen-wake-lock branch October 7, 2026 02:59
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