live-sources

Issue a WebRTC preview token

Changed on

A short-lived bearer token that lets the caller's browser read this source's feed over WHEP, at /<path>/whep on the site's own host.

post/api/live-sources/{id}/preview-token

Request

  • The document declares no server URL.
  • Auth
    • API key in header Authorization
    • or API key in cookie sessionid

Path parameters

idinteger required

Response

tokenstring required

Send as Authorization: Bearer <token> with the WHEP request.

expiresAtstring date-time required

The token must be presented before this; a session it started keeps playing.

contributionPathstring required

The original feed. WebRTC carries its video but not AAC audio.

previewPathstring required

The Opus-audio preview, if a conversion worker runs for this source.

programPathstring required

A low-latency copy of what the channel is airing, readable with the same token. Empty where the receiver has no programme return.

Changes