Skip to content

Get a video's seek-preview storyboard: JPEG sprite sheets of frames taken every `interval` seconds, each a `cols` x `rows` grid of `width` x `height` tiles filled left to right, top to bottom. The frame for playback time t is index clamp(floor((t + offsetMs / 1000) / interval), 0, count - 1). A video without one yet answers StoryboardNotFound and has one generated.

GET
/xrpc/place.stream.playback.getVideoStoryboard
curl --request GET \
--url 'https://example.com/xrpc/place.stream.playback.getVideoStoryboard?uri=https%3A%2F%2Fexample.com'
uri
required
string format: uri

Success

Media typeapplication/json
object
interval
required

Seconds between consecutive frames.

integer
>= 1
offsetMs
required

Where the video’s playback time 0 falls on the storyboard’s timeline; nonzero for a clip.

integer
width
required
integer
>= 1
height
required
integer
>= 1
cols
required
integer
>= 1
rows
required
integer
>= 1
count
required

Frames across all sheets.

integer
>= 1
sheets
required

Sprite sheet URLs in order, relative to this node unless absolute.

Array<string>

Example generated

{
"interval": 1,
"offsetMs": 1,
"width": 1,
"height": 1,
"cols": 1,
"rows": 1,
"count": 1,
"sheets": [
"example"
]
}

Bad Request

Media typeapplication/json
object
error
required
One of:
string
Allowed value: StoryboardNotFound
message
required
string

Example

{
"error": "StoryboardNotFound"
}