Repository navigation
Description
What happened
The "Show Next Up" setting offers choices labelled "At end" and "N seconds before end". On episodes that have a credits marker, the Next Up card appeared at the same point whether I chose "At end" or "10 seconds before end", on both the Android TV app and the Android phone app. That point was at the credits marker, not the end of the episode.
- Original report that started this: with the setting at "At end", the card has always appeared about 70-90 seconds before the end of the episode in normal use, until I started testing. (My first message put it at "a minute and a half before the end of the file".)
- Controlled retest on both devices, same episode (S01E04 of one show; credits marker at 46:31, runtime 48:12, so the marker is 1:41 before the end). Before testing I marked the episode watched and then unwatched on both devices to reset its state.
- I tested "At end", 10s and 30s once each, then "At end" and 10s another 2-3 times per device. [reporter to confirm: every run, including the 30s run, behaved the same]
- Android TV, "10 seconds before end" and "At end": the card appeared at the same point both times. I timed the gap with a stopwatch from when the card appeared until the credits appeared on screen: about 10 seconds.
- My estimate of the player position when the card appeared is about 1:38 before the end (about 46:34), roughly the marker. This is from memory: I can't see the seek bar without leaving the Next Up screen, so I did not read it exactly.
- Android phone: with 10s and with "At end", the card appeared at the same point both times, which I took to be at the credits marker as on TV. [reporter to fill in: how the phone gap was measured]
- I did not test 60 or 120 seconds, and I did not test an episode with no credits marker.
Steps to reproduce
- On Android TV, Settings > Playback > Show Next Up: choose "10 seconds before end". Auto-Play Next Episode is on; the still-watching value is 3. The other Episodes settings are server defaults.
- Choose an episode that has a credits marker and a next episode in the library (S01E04 here). Mark it watched, then unwatched.
- Start it from 0:00. To save time I sought to about 1 minute before the credits marker, let the seek settle, and played on without scrubbing across the marker. The original symptom was seen playing normally, without a seek. [reporter to fill in: how you found the marker position, e.g. the seek bar]
- Start a stopwatch when the Next Up card appears and stop it when the credits appear: about 10 seconds.
- Choose "At end", mark the episode watched and then unwatched again, and repeat steps 3-4: again about 10 seconds.
- On the phone app (Settings > Playback > Show Next Up, as I understand it from the app's strings), repeat with 10s and with "At end". The card came at the same point both times.
Expected behavior
The setting's choices are labelled "At end" and "N seconds before end", and the description in the app is "How long before the end of an episode the next-up prompt appears."
From that I expect "At end" to show the card at the end of the episode and "10 seconds before end" to show it 10 seconds before the end, so the choices behave differently. I understand from the code comments and from PR #30 (closed) that the credits marker is meant to take priority when there is one. If so, the labels and description should say that, because as written the choices promise something different from what happens.
Device
Android TV / Google TV
Device model and OS version
NVIDIA Shield TV Pro, Android 11
App version and build
1.2.0 (31)
Installed from
Google Play
Silo server version
Build 2148 · 51b1e0a4
Playback details
No response
Diagnostics report reference
No response
Screenshots or recording
No response
Relevant server logs
No log lines attached. No client log was captured. When asked to look in Admin > Logs for marker events, I saw no marker logs or updates from the session.Technical notes
This is analysis from reading the public source, not something I observed on my devices. The installed builds are 1.2.0 (31) on both devices. The source I read is 17 commits after tag v1.2.0-beta.31. At that tag I re-checked only: the TV credits-marker trigger and the 10-second countdown constant, the readers of the setting in the TV app, and the phone marker-first logic and comments; they are the same there. I did not re-check the rest at the tag, and I have not confirmed that "1.2.0 (31)" is that tag. Line numbers are given for the tag, then for HEAD (commit 4686d6d) where they differ.
- Phone:
PlayerViewModel.ktlines 3295-3311 fire the card when playback crossesupNextCreditsStart(). Only when there is no credits marker does that block fall back toduration - nextUpPromptSeconds. A comment at line 1039 says "Credits marker wins when present". So in that block the seconds value is not consulted when a marker exists (I did not search the rest of the phone player for other uses). - TV:
TvPlayerViewModel.kt(line 3907 at the tag, 3913 at HEAD) fires the card when playback crosses the credits marker; the other trigger I found isSTATE_ENDED. I found no reader ofnextUpPromptSecondsFlowor of the setting's key constants in the TV player; only the TV settings code reads it. I did not search for other ways the value might reach the player (guess: none). - The card's countdown on TV is the constant
NEXT_UP_COUNTDOWN_SECONDS = 10(line 996). - So for an episode with a marker, "At end" and "10 seconds before end" appear to give the same result, which matches the controlled retest. The code fires when playback reaches the marker start (46:31 here), and my estimate of the card's position (about 46:34) is consistent with that. Guess: the credits become visible on screen about 10 seconds after the marker start, which would explain the stopwatch gap of about 10 seconds.
- The marker-first behaviour looks intentional: PR Phone player: Up Next countdown card with auto-play parity #30 (phone Up Next card, closed and not merged) describes the card appearing when playback "crosses the credits marker - or, without a marker, the
nextUpPromptSecondsfallback crossing", and says this ports behaviour already on Android TV and iOS. Issue Phone player: auto-play next episode with countdown (Up Next parity) #23 (closed) asks for the phone card to "respect credits markers when present". silo-apple#1000 (an open feature request, not shipped behaviour) describes the same model on Apple. So the main problem I am reporting is the mismatch between that design and the labels and description. Possible directions (suggestions only): rename and describe the setting as marker-based, with the seconds value used only when there is no marker; use the seconds value on TV for episodes without a marker, as the phone does; or let the seconds value override the marker so "At end" means the end of the file. [feature] Make Skip Credits work and offer Ask / Auto / Off #848 (open) proposes Skip Credits modes and says "Keep this choice independent of Up Next and its autoplay behavior", which matters for the last option.
Secondary observations (could be separate issues)
- On TV, I found no reader of the seconds value in the TV player (see above). If that is right, the value is unused even for an episode with no credits marker. I did not test an episode without a marker.
- Once the card has appeared, it does not come back until the end of the file: "If you hit Next Up, scrub back, then play, it wont show up until the end of the file." The code agrees: both players have a once-per-episode guard (
autoAdvanceHandled, with the comment "The credits prompt is once per episode; a dismissed card reopens when playback ends", TV line 5403, phone line 6146). I did not test whether this holds after a dismissed card on both devices. - My first TV test looked different: on an episode of a different show (title omitted), with "At end" the card appeared 1-2 seconds before the credits marker, but with 10s and 30s no card appeared until the file had ended completely, and then a 10-second Up Next screen showed. I described that test as having "started during" that show's look-ahead and credits sequence. Guess: the card had already shown once for that episode, or I started inside the credits, so it only came back at the end of the file; the marker trigger fires only on a before-to-after crossing and not during a seek (lines 3908-3916 at HEAD). I did not repeat that test in a controlled way, which is why I switched to the first show, whose credits start times are clearer.
I searched silo-android (and the org for next_up_prompt_seconds) for: "next up prompt", "at end" next up, next up credits marker setting, show next up seconds, autoplay next web settings. I found no existing issue or PR for this. Related: #848, #321 and #322 (Markers / skip intro & credits - Android and Android TV), #404, #62 (Next up disappeared; possibly related, it has no detail), #23 (closed), PR #30 (closed, not merged), silo-apple#1000 (open feature request). PRs #885 and #886 (HUD redesigns with a credits card) are closed and not merged.
AI harness
Claude Code (desktop app)
AI tool(s)
Claude Code file read/search and shell tools; skill silo-troubleshooting; subagents for review
AI model(s)
claude-sonnet-5-5
AI involvement
AI-assisted
Independent or adversarial review
Two rounds, four fresh subagents each (evidence, reproducibility, privacy, duplicates). Round 1 found claims wider than my tests (phone platform, episodes used, a log check I had not recorded), my expectations written in my voice, more than one problem in the report, and the marker-first design being intentional (PR #30, #23). It also claimed two HUD-redesign PRs were merged after my build; I checked and rejected that (both are closed, not merged). I rewrote the draft and narrowed it to one main problem. Round 2 found more over-wide wording ("never used", "same at the tag", run counts), an unrecorded quote from #848, missing phone and marker details, and a few related issues to list; I fixed these or turned them into marked placeholders. Privacy found nothing in either round. No duplicate or fix was found in either round. After round 2, my answers to the open questions were added; those final edits were checked by the assistant against the evidence file only, not by new reviewers.
Confirmations
- I searched open and recently closed issues and pull requests, and this is not already reported
- I reproduced this myself on the device and app version above
Activity
fix(player): time Up Next from the end of the file, not the credits m…