Skip to content

Feature/Stats for Nerds#878

Open
iminsandiego wants to merge 1 commit into
iBicha:mainfrom
iminsandiego:feature/upstream-stats-for-nerds
Open

Feature/Stats for Nerds#878
iminsandiego wants to merge 1 commit into
iBicha:mainfrom
iminsandiego:feature/upstream-stats-for-nerds

Conversation

@iminsandiego

Copy link
Copy Markdown

Adds a fullscreen player “Stats for Nerds” overlay showing playback diagnostics:

  • State
  • Position / duration
  • Resolution
  • Video and audio format
  • Bitrate
  • Container

Implementation Notes

  • Adds a dedicated StatsForNerds component rather than embedding stats rendering directly into VideoPlayer.
  • The overlay is passive and does not take focus.
  • Stats are updated from observed Video fields only while the overlay is visible and the player is fullscreen.
  • There is no polling timer.
  • Observers are detached when the overlay is hidden, removed, or disposed.
  • Adds a hidden persisted preference, playback.stats_for_nerds, so the overlay state can carry across videos without exposing a settings-screen toggle.
  • Adds an in-player options dialog to show/hide the stats overlay.
  • Uses Playlet’s existing long-press helper for an OK-long-press fallback because some Roku TV models intercept the Options key during video playback.
  • Preserves native D-pad scrub behavior by passing OK through to the native Video node while selecting a seek position.

Manual Roku TV validation:

  • Normal VOD playback
  • Show/hide Stats overlay from player options
  • Stats overlay persists across videos
  • D-pad left/right scrub with thumbnail preview, then OK resumes from selected position
  • Down button still toggles PiP/minimize
  • Back/dismiss paths from player options
  • Live video playback

@iminsandiego

Copy link
Copy Markdown
Author

I hope this is a better first contribution. I was hoping to use a long options key press to activate the stats overlay, but my Roku TV captures the options key during video playback. Instead, I used a long OK press. Maybe you have a better idea to activate. Here is what the overlay and activation menu look like. Unfortunately there is no video background so you can't see the bounds of the overaly in these screenshots.
Stats
Show
Hide

@iBicha

iBicha commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Thanks for recreating the PR - I have to be honest, I didn't like the UX situation we're faced, just because there isn't a nice way to surface functionality on top of the player.
So I was trying to get the dev video player into a usable state #883 and if that works well, then stats for nerds can be added to the row of buttons, that the new player would support.

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.

2 participants