Sluby
REST APIDelivery

A video's public watch page, for a link or an iframe.

An HTML page that plays the video by asset ID or pb_ playback ID through the gateway. A private video or a signed playback ID needs the `expires` and `sig` of a signed URL, which the page passes on to the stream and the poster. Any site may frame it (`frame-ancestors *`). Query `autoplay=1`, `muted=1` and `loop=1` change how it starts.

GET
/watch/{id}

An HTML page that plays the video by asset ID or pb_ playback ID through the gateway. A private video or a signed playback ID needs the expires and sig of a signed URL, which the page passes on to the stream and the poster. Any site may frame it (frame-ancestors *). Query autoplay=1, muted=1 and loop=1 change how it starts.

Path Parameters

id*string

Asset ID or pb_ playback ID.

Query Parameters

expires?string

From a signed URL, for a private video or a signed playback ID.

sig?string

From the same signed URL.

Response Body

The page.

response?stringtext/html
Example Request
curl -X GET 'https://sluby.example.com/watch/string'
Example Response
"string"