Skip to content
Konjure / spatial intelligence

Video

← Builtin reference

A video resource request with display dimensions.

Signature

type Video {
  source: Str = "";
  width: Number = 1;
  height: Number = 1;
}

This is a schema, not playback: the host owns decoding, timing, I/O, and any playback controls. Constructing it never starts a video.

Fields

source: Str
Host-defined video locator; defaults to empty.
Default""
width: f64
Requested display width in scene units; defaults to 1.
Default1
height: f64
Requested display height in scene units; defaults to 1.
Default1

Examples

Describe a video

The host decides whether and how the named resource plays.

Tick 0 · 0.00 s⌘ / Ctrl + EnterThis device
main.kj
Loading the language runtime…
Output 0
No output.
Expected output
clip.mp4

Rust definition

Interpreter RecordValue resource schema, not a video decoder or playback handle.

See also