A live video input request with display dimensions.
Signature
type VideoStream {
source: Str = "camera";
width: Number = 1;
height: Number = 1;
}The host owns permission, capture lifecycle, frame orientation, and resource contention. The default camera string is only a requested source selector.
Fields
Examples
Request a stream
A host must grant permission and create the actual capture session.
main.kj
Loading…Drag to orbit · select to inspect
0 entities
Scene controls
Results
Loading the language runtime…
Output 0
No output.
State
Compile source to inspect its values.
TraceNo execution yet
- Executed source spans appear here.
Expected output
camera
Rust definition
Interpreter RecordValue stream schema, not a camera session or frame source.
View Rust documentation →Support: resource contract