zero.appdocs

Camera

Actions v1.0 zero-schema

Camera action with four modes selected by Mode: Scan (barcode/QR), Capture (photo), Record (video), or Stream (live broadcast).

Missing descriptions: Handler, OnSuccess, OnFailure.

Required fields

Handler

Properties

Handler required
No description
Mode string optional
Scan returns the decoded barcode/QR string; Capture and Record return an upload-ready { name, bytes, size } (feeds an Http POST); Stream publishes a live broadcast.
Default "Scan"
Allowed Scan Capture Record Stream
Width number optional
Scanner width, or preferred capture width in pixels for Stream mode.
Height number optional
Scanner height, or preferred capture height in pixels for Stream mode.
FrameRate integer optional
Preferred video frames per second for Stream mode.
VideoBitrate integer optional
Preferred encoded video bitrate in bits per second.
AudioBitrate integer optional
Preferred encoded audio bitrate in bits per second.
Url string optional
For Stream mode, /api/live-streams or an existing live-stream URL.
Operation string optional
For Stream mode, Start begins publishing and Stop ends it.
Default "Start"
Allowed Start Stop
Audio boolean optional
Whether to capture the microphone. Set Video false and Audio true for a voice-only (audio) live stream.
Default true
Video boolean optional
Whether to capture the camera. Set false for a voice-only stream.
Default true
ChunkMilliseconds integer optional
How often, in milliseconds, encoded media is flushed to the stream.
Default 1000
Source string optional
For Capture/Record, whether to open the live camera or pick an existing item from the device gallery.
Default "Camera"
Allowed Camera Gallery
MaxSeconds integer optional
For Record, an optional cap on the recording length in seconds.
OnSuccess ref optional
No description
OnFailure ref optional
No description

Referenced contracts