Dominevo
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.

MethodKindTierToken scopeViewer
getInfoqueryprotectedviewno
reprobeHwaccelmutationadminadmin onlyno

decoder.getInfo

  • Kind: query — GET /trpc/decoder.getInfo
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability decoder, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=decoder.getInfo on your hub

Input

void

Output

{ 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.reprobeHwaccel on your hub

Input

void

Output

{ backend: string }