Skip to content

place.stream.playback.getVideoStoryboard

Lexicon Version: 1

Type: query

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.

Parameters:

Name Type Req’d Description Constraints
uri string ✅ Format: at-uri

Output:

  • Encoding: application/json
  • Schema:

Schema Type: object

Name Type Req’d Description Constraints
interval integer ✅ Seconds between consecutive frames. Min: 1
offsetMs integer ✅ Where the video’s playback time 0 falls on the storyboard’s timeline; nonzero for a clip. Min: 0
width integer ✅ Min: 1
height integer ✅ Min: 1
cols integer ✅ Min: 1
rows integer ✅ Min: 1
count integer ✅ Frames across all sheets. Min: 1
sheets Array of string ✅ Sprite sheet URLs in order, relative to this node unless absolute.

Possible Errors:

  • StoryboardNotFound: The video has no storyboard yet; one is being generated.

{
"lexicon": 1,
"id": "place.stream.playback.getVideoStoryboard",
"defs": {
"main": {
"type": "query",
"description": "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.",
"parameters": {
"type": "params",
"required": ["uri"],
"properties": {
"uri": {
"type": "string",
"format": "at-uri"
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"interval",
"offsetMs",
"width",
"height",
"cols",
"rows",
"count",
"sheets"
],
"properties": {
"interval": {
"type": "integer",
"minimum": 1,
"description": "Seconds between consecutive frames."
},
"offsetMs": {
"type": "integer",
"minimum": 0,
"description": "Where the video's playback time 0 falls on the storyboard's timeline; nonzero for a clip."
},
"width": {
"type": "integer",
"minimum": 1
},
"height": {
"type": "integer",
"minimum": 1
},
"cols": {
"type": "integer",
"minimum": 1
},
"rows": {
"type": "integer",
"minimum": 1
},
"count": {
"type": "integer",
"minimum": 1,
"description": "Frames across all sheets."
},
"sheets": {
"type": "array",
"items": {
"type": "string"
},
"description": "Sprite sheet URLs in order, relative to this node unless absolute."
}
}
}
},
"errors": [
{
"name": "StoryboardNotFound",
"description": "The video has no storyboard yet; one is being generated."
}
]
}
}
}