Repository navigation
feat(tvos): send the playing title's poster and synopsis in remote state - #871
Conversation
The SiloRemote playback state now carries two optional fields, posterUrl and overview. A controller without its own Silo sign-in, such as a Home Assistant integration, can show real artwork and a synopsis. The Apple TV resolves them from the cached item detail, falling back to the network, and uses the series poster for episodes. It fetches a re-signed URL before the signature expires, never sends an expired one, and drops both fields when playback stops or the title changes. It does this work only while a controller is connected. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
…eries lookups An episode now sends only its series poster: the episode's own poster is its still, which spoiler protection may hide and which is 16:9 anyway. A failed series lookup now fails the load, so the resolver retries it instead of settling for an episode without its poster. The test fixtures decode with the production snake_case strategy. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Problem
A Home Assistant integration that controls an Apple TV over SiloRemote gets the title, subtitle, position, and controls from the playback state, but no artwork or synopsis. To show a poster it has to sign in to Silo separately and look up the item by
contentId. That adds a second sign-in, or an API key, just to draw a picture the TV already has.Solution
The
statepayload gets two optional fields:{ "posterUrl": "https://…/api/v2/artwork/…?exp=…&sig=…", "overview": "Episode or movie synopsis" }TVControlReceiverfills them from a newSiloControlNowPlayingMetadataResolver:posterUrlis omitted. The synopsis is the episode's own, falling back to the series synopsis. A failed series lookup counts as a failed load and is retried./api/v2/artworkroute or an object-storage URL. Neither needs an auth header, so the controller downloads the image from Silo or the CDN directly.exp, or beforeX-Amz-Date+X-Amz-Expiresfor S3. It re-checks every 30 minutes when the expiry can't be read.Both fields are omitted rather than sent as
nullwhen unknown. Older peers ignore them: Swift's synthesized decoder skips unknown keys, and Android decodes withignoreUnknownKeys = true. So there is no protocol version bump or feature flag, and no new endpoint, command, or auth flow.The phone remote is unchanged. It still resolves its own artwork from
contentId.Validation
SiloTVon a tvOS simulator,SiloControlNowPlayingMetadataTests(11 new) andSiloControlWireCompatibilityTests(14 existing): 25 of 25 pass on d01bf59. They cover:Silo(iOS simulator) andSiloMacbuilds withCODE_SIGNING_ALLOWED=NO: both succeed.Validation tasks: none
Evidence
Evidence: none, no user-visible change. The TV's own screens are unchanged; the new fields only appear in the remote-control state, and no controller displays them yet.
Risks
Low. Two optional state fields are added, and the TV makes at most a few item-detail requests per title while a controller is connected. With a short server artwork TTL (minimum 1 minute), the TV refreshes once a minute.
Follow-ups
AI disclosure
🤖 Generated with Claude Code
Note
Add poster and synopsis to tvOS remote control playback state
Sends the playing title's artwork and overview to remote controllers in the state frame.
posterUrlandoverviewfields toSiloControlPlaybackState; nil values are omitted from the wire and older decoders without the fields still accept new framesSiloControlNowPlayingMetadataselects the series poster for episodes (never the episode still) and prefers the item's own overview with series overview as fallback; blank strings become nilSiloControlNowPlayingMetadataResolvertracks the current title, loads metadata from the catalog, and re-signs artwork with cache bypass before expiry; it parses Silo and S3 signed-URL expiry formats and withholds an expired poster while keeping the overviewTVControlReceiverbroadcasts a fresh state when metadata resolves or re-signs, and drops the previous title's metadata on playback changesposterUrlandoverviewkeys when populated; nil metadata is omitted on the wireMacroscope summarized d01bf59.