Skip to content

[v1] Third-party native playback clients #431

Open

Description

@crowquillx

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_id is 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:

  1. Public server info should expose product identity, build revision, and a native API revision (or document why capabilities fully replace the latter).
  2. Document the capability endpoints that third-party clients must probe and the /api/v1 deprecation/compatibility guarantee.
  3. Document which X-Silo-Client* and X-Silo-Device-* headers are required versus advisory.
  4. Guarantee a legacy native playback-envelope lifetime, or add an mpv-capable protocol-v3 engine contract. The current v3 capability advertises media3_only and first-party engine semantics.
  5. Preserve signed/relative stream and subtitle URLs as opaque URLs; document refresh/replan behavior for an expired playback plan.
  6. Confirm content_id as catalog/user-state identity and file_id as 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.

Activity

  1. changed the title [-][v1] Third-party native HTPC playback clients (mpv)[/-] [+][v1] Third-party native playback clients[/+] on Jul 20, 2026
  2. added
    v1.0-proposed
    on Jul 20, 2026
  3. added
    triaged
    and removed
    triaged
    on Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    v1.0-proposed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions