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
const url = 'https://example.com/xrpc/place.stream.playback.getVideoStoryboard?uri=https%3A%2F%2Fexample.com';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/xrpc/place.stream.playback.getVideoStoryboard?uri=https%3A%2F%2Fexample.com'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”uri
required
string format: uri
Responses
Section titled “Responses”Success
Media typeapplication/json
object
interval
required
Seconds between consecutive frames.
integer
offsetMs
required
Where the video’s playback time 0 falls on the storyboard’s timeline; nonzero for a clip.
integer
width
required
integer
height
required
integer
cols
required
integer
rows
required
integer
count
required
Frames across all sheets.
integer
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
message
required
string
Example
{ "error": "StoryboardNotFound"}