Repository navigation
Description
Summary
Allow third-party TV clients such as Bloom to use Silo's native /api/v1 surface for account/profile selection, catalog browsing, and mpv playback without requiring the optional Jellyfin compatibility listener.
Bloom is adding provider adapters rather than subclassing its Jellyfin wire implementation. We need a discoverable, stable native contract that can produce a provider-neutral playback plan for direct progressive playback, remux, HLS transcode, tracks, reporting, and recovery.
User value / why v1
Silo operators can use a native client while leaving the compatibility listener disabled. Locking the contract in v1 prevents third-party clients from depending on emulated Jellyfin DTOs or an undocumented legacy playback envelope that may later disappear.
API surface
Existing routes we expect to consume:
- detection:
GET /api/v1/health(server_idis the installation identity) - auth/session:
/api/v1/auth/providers,login,refresh,me,logout,sessions - household profiles:
GET /api/v1/profiles,POST /api/v1/profiles/{id}/verify-pin - catalog:
/api/v1/user/libraries,/api/v1/catalog,/catalog/query, item/version/season/episode routes - playback:
GET /api/v1/playback/capability,POST /api/v1/playback/start, progress/replan/stop routes
Contract additions/clarifications requested before a third-party client treats this as stable:
- Public server info should expose product identity, build revision, and a native API revision (or document why capabilities fully replace the latter).
- Document the capability endpoints that third-party clients must probe and the
/api/v1deprecation/compatibility guarantee. - Document which
X-Silo-Client*andX-Silo-Device-*headers are required versus advisory. - Guarantee a legacy native playback-envelope lifetime, or add an mpv-capable protocol-v3 engine contract. The current v3 capability advertises
media3_onlyand first-party engine semantics. - Preserve signed/relative stream and subtitle URLs as opaque URLs; document refresh/replan behavior for an expired playback plan.
- Confirm
content_idas catalog/user-state identity andfile_idas playback-version identity.
Bloom will use milliseconds internally, bearer access/refresh tokens in platform secret storage, X-Profile-Id after profile selection, and X-Profile-Token after successful PIN verification.
Client impact
- Android: none required; existing Media3 v3 behavior remains.
- Apple: none required.
- Web: none required.
- Third-party HTPC clients: add native Silo adapters and map the finalized response to an mpv-neutral playback descriptor.
Rough size
M if protocol v3 needs an mpv engine/capability. S if the legacy envelope is already intended to be stable and this is primarily public contract documentation/discovery metadata.
Context
Bloom tracking: crowquillx/Bloom#73 and child crowquillx/Bloom#74
Source baseline reviewed: 8044eb84dd0cfa512ce8f2448cfd51cb7899a4c6 (internal/api/router.go, auth/profile/catalog/playback handlers, and internal/playback/protocol_v3.go).
AI assistance disclosure: source inventory and issue drafting were assisted by an AI coding agent and reviewed against the cited source revision.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
[-][v1] Third-party native HTPC playback clients (mpv)[/-][+][v1] Third-party native playback clients[/+]test(contracts): add provider compatibility baseline (#82)