Skip to main content

VIDEO

Constant VIDEO 

Source
pub const VIDEO: &str = "type Video {\n  source: Str = \"\";\n  width: Number = 1;\n  height: Number = 1;\n}";
Expand description

A video resource request with display dimensions.

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

§Declaration

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

§Fields and methods

  • source: Host-defined video locator; defaults to empty.

  • width: Requested display width in scene units; defaults to 1.

  • height: Requested display height in scene units; defaults to 1.

§Describe a video

The host decides whether and how the named resource plays.

let value = Video { source: "clip.mp4" };
print(value.source);