Broadcast · Search params & storage
7 modules · 55 exports · 1 repository · 9 e2e tests · 1 route
The state Broadcast keeps in the URL and in the browser's storage. Every param has a default and never fails to decode, see Search params, and each definition should have an assertRoundTrips test. The definitions of the whole app are listed in the reference.
Search params
URL broadcastOverlaySearchParams
app/features/broadcast/broadcast-search-params.ts:7
A tournament broadcast's overlay, as the dashboard's previews show it.
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
view | v.picklist(BROADCAST_VIEWS) | "live" | false | |
preview | v.boolean() | false | false | Shown in the dashboard instead of OBS, not counted as an OBS source |
Used in broadcast-urls.tsBroadcastProgram.tsx
URL broadcastStreamSearchParams
app/features/broadcast/broadcast-search-params.ts:16
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
role | v.picklist(BROADCAST_STREAM_ROLES) | "source" | true |
Used in to.$id.broadcast.$channel.stream.tsbroadcast-urls.ts
URL broadcastProgramSearchParams
app/features/broadcast/broadcast-search-params.ts:24
A user's OBS URL and its stream, see findProgram.
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
key | v.nullable(v.pipe(v.string(), v.maxLength(100))) | null | true | Secret identifying the URL, OBS has no session. |
Used in broadcast.program.server.tsbroadcast.program.stream.tsbroadcast-urls.ts