Streaming API
How streaming works
What runs today behind the stream catalog, how the multi-language audio is made, and the proposed operator control plane.
This page explains what sits behind the stream catalog today and what is still being built. Only the catalog read API is live.
What is live and what is not
| Piece | Status |
|---|---|
GET /v1/streams and GET /v1/streams/{stream_id} | Live. Free, 30 second cache, server-side calls only. |
| Stream catalog contents | Live but empty. Streams are added by ALT Sports Data. |
| Registering or listing your own stream | Not available. There is no registration API yet. |
| Production ingest and video delivery | Not running yet. |
| Ingest pipeline | Runs today as a demonstration. |
| Webhooks or push notifications | Not available. Poll GET /v1/streams/{stream_id} for status changes. |
| Operator control plane | Proposed. See below. |
The ingest pipeline
The ingest pipeline takes one SRT feed from the venue or provider and turns it into a single HLS master playlist:
- One video lane, passed through without re-encoding.
- One AAC audio lane per language.
Each stream item in the catalog gives you master_hls_url and the hls_url of each rendition. The playlist host
will be given in each stream item; do not hard-code one.
Today each stream has one video rendition. Check renditions[] rather than assuming one.
How the multi-language audio works
The original commentary keeps its own language and is only re-encoded to AAC. Every other language is generated by machine in three steps:
- Speech recognition turns the commentary into text.
- The text is translated.
- A synthetic voice reads the translation.
These steps add roughly 0.7 to 1.4 seconds. In production the video is designed to be held back by the same amount, so every language stays in sync and the stream runs slightly behind live. The demonstration does not apply this delay yet.
Demonstration only
In the current demonstration the translated audio is simulated. Treat the latency figures as a design target until production ingest is running.
Proposed operator control plane
Proposed, not built
Nothing in this section exists yet. The host is undecided, and names and shapes may change.
The proposal gives operators a way to receive streams, not only discover them:
| Step | What it would do |
|---|---|
| Token | Get a credential for the control plane. |
| List | See the streams you can book. |
| Book | Reserve a stream at a tier. Booking would be idempotent on stream and tier, so repeating a request does not create a second booking. |
| Deliveries | Read where and how a booked stream is delivered to you. |
| Sessions | Track active playback sessions. |
Booking events and leagues (as opposed to streams) is arranged with your ALT Sports Data account team today.