ReferenceHTTP API
decoder
The decoder router: 2 methods of the decoder capability, with tier, scope, input and output.
Capability decoder · scope system · mode singleton · source packages/types/src/capabilities/decoder.cap.ts:54.
Every method is called at /trpc/decoder.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getInfo | query | protected | view | no |
reprobeHwaccel | mutation | admin | admin only | no |
decoder.getInfo
- Kind: query —
GET /trpc/decoder.getInfo - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitydecoder, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=decoder.getInfoon your hub
Input
voidOutput
{ id: string; name: string; hwaccel?: string; probedBestHwaccel?: string }decoder.reprobeHwaccel
- Kind: mutation —
POST /trpc/decoder.reprobeHwaccel - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=decoder.reprobeHwaccelon your hub
Input
voidOutput
{ backend: string }