Handle
Methods
Types
Method Reference
start() -> Result<WebcamStream>
Start the MJPEG stream. Idempotent: called while a stream is already up, it
reports the existing one with already_running: true rather than starting a second.
stop() -> Result<bool>
Stop the stream.
Returns: false if no stream was active.
status() -> Result<WebcamStatus> and url() -> Result<Option<String>>
Whether a stream is active and where, or just the URL.
Examples
Record the bench while a long test runs
Supported Hardware
Notes
- The stream URL points at the box as the client reached it. A URL captured on one network does not always resolve from another, so do not persist it across environments.
- This handle gives a video stream, not a frame grab. There is no assert-on-image here —
point an MJPEG consumer (a browser, VLC, OpenCV) at the URL. To save one frame from
a running stream, use
lager webcam NET snapshotfrom the CLI. - Always
stop()in teardown. A running stream holds the camera open. A start on the same net reports the running stream. A stream on a different net that uses the same camera is refused until this one stops.

