Skip to content

feat(tv): transient skip indicator for hidden-controls D-pad seeks - #39

Merged
RXWatcher merged 2 commits into
Silo-Server:mainfrom
RXWatcher:feat/dpad-skip-indicator
Jul 7, 2026
Merged

RXWatcher merged 2 commits into
Silo-Server:mainfrom
RXWatcher:feat/dpad-skip-indicator

Conversation

@RXWatcher

@RXWatcher RXWatcher commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

D-pad Left/Right during playback with hidden controls seeked silently — the video jumped with no visual feedback (user report). Each skip now shows a pill chip (+30s / −10s + landing time) above a thin full-width progress line anchored with the transport scrubber's exact bottom geometry (horizontal 80 / vertical 40), so the position reads where the real bar lives. Auto-hides 1.2s after the last press; consecutive presses restart the timer and keep seeking.

Why not just reveal the transport overlay

Considered and rejected: dpadHorizontalSeek gates on !showControls, so revealing the controls flips the next Left/Right press from a discrete skip into a scrubber preview nudge — breaking repeated-press seeking mid-sequence. The indicator keeps controls hidden so the interaction stays uniform. It's suppressed under the transport, HUD, Up Next, and PiP (which have their own position feedback), and borrows TvHoldSeekIndicator's visual language.

Testing

  • Unit tests green (:androidTvApp:testDebugUnitTest), including the TV typography-readability floor (time label at 16sp).
  • Verified live on a Google TV Streamer: skip feedback appears at the scrubber position, auto-hides, and repeated presses keep doing consistent discrete skips.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added a transient on-screen skip feedback indicator for TV playback when using D-pad seek controls with hidden controls.
    • The indicator now shows the skip amount and the resulting playback time, and includes a progress bar when duration is available.
  • Bug Fixes

    • Improved skip-time formatting for clearer display, including proper plus/minus signs and safer time formatting for edge cases.
    • The feedback now appears briefly and then hides automatically after a short delay.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@coderabbitai

coderabbitai Bot commented Jul 7, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@RXWatcher, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 47 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d0cc06da-4185-45d4-b46c-7f16c5c0ccf3

📥 Commits

Reviewing files that changed from the base of the PR and between 295ca5c and 145f698.

📒 Files selected for processing (6)
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/mpv/MpvSubtitleStyle.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSkipSeekIndicator.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/library/TvLibrarySubdestinationViewModelTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/people/TvPersonDetailViewModelTest.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSkipSeekIndicatorTest.kt
📝 Walkthrough

Walkthrough

Adds a transient on-screen skip feedback indicator for TV player D-pad relative seeks performed while controls are hidden. Introduces SkipSeekFeedback data model, TvSkipSeekIndicator composable with animated pill and progress rail, wiring in TvPlayerScreen, and formatter unit tests.

Changes

Skip Seek Feedback Indicator

Layer / File(s) Summary
SkipSeekFeedback model and indicator composable
androidTvApp/src/androidMain/kotlin/.../TvSkipSeekIndicator.kt
New SkipSeekFeedback data class and TvSkipSeekIndicator composable render an animated pill chip with formatted delta/time and a clamped progress rail; adds formatSkipDelta and formatSkipTime helpers.
TvPlayerScreen integration
androidTvApp/src/androidMain/kotlin/.../TvPlayerScreen.kt
Adds SKIP_FEEDBACK_HIDE_MS constant, skipSeekFeedback state with an auto-clearing LaunchedEffect, updates performRelativeSeek to populate feedback on hidden-controls seeks, and conditionally renders TvSkipSeekIndicator aligned with the scrubber.
Formatter unit tests
androidTvApp/src/androidUnitTest/kotlin/.../TvSkipSeekIndicatorTest.kt
New test class validates formatSkipDelta output for positive and negative delta values, including correct minus glyph usage.

Estimated code review effort: 2 (Simple) | ~15 minutes

Possibly related PRs

  • Silo-Server/silo-android#37: Both PRs modify TvPlayerScreen's hidden-controls D-pad skip/seek behavior, with this PR adding the feedback indicator on top of that seek flow.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: a transient skip indicator for hidden-controls D-pad seeks on TV.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@RXWatcher
RXWatcher force-pushed the feat/dpad-skip-indicator branch 2 times, most recently from 13a90f6 to 295ca5c Compare July 7, 2026 18:55
D-pad Left/Right while the controls are hidden seeked silently — the
video just jumped with no feedback. Now each skip shows a pill chip
(+30s / −10s and the landing time) above a thin full-width progress
line anchored with the transport scrubber's bottom geometry, so the
position reads exactly where the real bar lives. Auto-hides 1.2s after
the last press; consecutive presses restart the timer.

Deliberately NOT the transport overlay: revealing controls flips
Left/Right from discrete skips into scrubber preview nudges mid-sequence
(dpadHorizontalSeek gates on !showControls), breaking repeated-press
seeking. Suppressed under transport/HUD/Up Next/PiP which have their own
position feedback. Visuals borrowed from TvHoldSeekIndicator.

Verified on a Google TV Streamer.

Co-Authored-By: Claude Fable 5 <[email protected]>
@RXWatcher
RXWatcher force-pushed the feat/dpad-skip-indicator branch from 295ca5c to acc9825 Compare July 7, 2026 18:59

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSkipSeekIndicator.kt (1)

16-26: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Mixed Material3 flavors: Surface from compose.material3 next to tv.material3.Text.

The pill uses androidx.compose.material3.Surface but androidx.tv.material3.Text. Since this is a non-interactive decorative surface, it won't break functionality, but androidx.tv.material3.Surface exists specifically for TV surfaces (consistent theming/focus semantics) and is likely the convention used elsewhere in this TV app's overlays. Consider using the TV-specific Surface for consistency with the rest of the Android TV UI kit.

Also applies to: 63-87

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSkipSeekIndicator.kt`
around lines 16 - 26, The `TvSkipSeekIndicator` composable is mixing Material3
families by using `androidx.compose.material3.Surface` alongside
`androidx.tv.material3.Text`; update the indicator to use the TV-specific
`Surface` in this TV overlay so the styling and semantics stay consistent with
the rest of the Android TV UI kit. Keep the rest of the composable behavior the
same and adjust any related imports/usages in `TvSkipSeekIndicator` accordingly.
androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt (1)

1477-1486: 📐 Maintainability & Code Quality | 🔵 Trivial | 🏗️ Heavy lift

Hard-coded 113dp offset duplicates TvPlayerIdleOverlay's internal scrubber geometry.

The comment documents the derivation well, but the value is a magic literal computed from another composable's internal spacing. If that overlay's padding/gap values change, this offset silently desyncs and the rail will no longer align with the real scrubber. Consider exposing the scrubber's bottom offset as a shared constant (or a measured/reported value) both composables reference.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt`
around lines 1477 - 1486, The transient rail positioning uses a hard-coded
bottom offset that duplicates TvPlayerIdleOverlay’s internal scrubber spacing,
so it can drift if that layout changes. Move the scrubber bottom offset
calculation into a shared constant or shared layout value, and have both
TvPlayerScreen and TvPlayerIdleOverlay reference it instead of the literal
padding. Use the related composables and layout modifiers around the Box padding
and idle overlay geometry to keep the scrubber alignment in sync.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In
`@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt`:
- Around line 1477-1486: The transient rail positioning uses a hard-coded bottom
offset that duplicates TvPlayerIdleOverlay’s internal scrubber spacing, so it
can drift if that layout changes. Move the scrubber bottom offset calculation
into a shared constant or shared layout value, and have both TvPlayerScreen and
TvPlayerIdleOverlay reference it instead of the literal padding. Use the related
composables and layout modifiers around the Box padding and idle overlay
geometry to keep the scrubber alignment in sync.

In
`@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSkipSeekIndicator.kt`:
- Around line 16-26: The `TvSkipSeekIndicator` composable is mixing Material3
families by using `androidx.compose.material3.Surface` alongside
`androidx.tv.material3.Text`; update the indicator to use the TV-specific
`Surface` in this TV overlay so the styling and semantics stay consistent with
the rest of the Android TV UI kit. Keep the rest of the composable behavior the
same and adjust any related imports/usages in `TvSkipSeekIndicator` accordingly.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: e17b52b0-dc9d-477f-9375-6ba7c08f0585

📥 Commits

Reviewing files that changed from the base of the PR and between 1e1367c and 295ca5c.

📒 Files selected for processing (3)
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSkipSeekIndicator.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSkipSeekIndicatorTest.kt

Position presets anchor to the movie area, never the letterbox bars
(deliberate deviation from Apple's use-margins Bottom behavior; matches
MpvPlayer's init default). Media3 already positions video-relative
(exo_subtitles is a child of the aspect-fitted exo_content_frame).

Also raise the two wall-clock awaitState poll budgets (5s->30s) that
flake on loaded CI runners and blocked this PR's merge.

Co-Authored-By: Claude Fable 5 <[email protected]>
@RXWatcher
RXWatcher merged commit c38dc7d into Silo-Server:main Jul 7, 2026
4 checks passed
@RXWatcher
RXWatcher deleted the feat/dpad-skip-indicator branch July 13, 2026 19:37
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