Interface: RecordVideoOptions
Properties​
fileType​
• Optional
fileType: "mov"
| "mp4"
Specifies the output file type to record videos into.
Defined in​
types/VideoFile.ts:12
flash​
• Optional
flash: "off"
| "on"
Set the video flash mode. Natively, this just enables the torch while recording.
Defined in​
types/VideoFile.ts:8
onRecordingError​
• onRecordingError: (error
: CameraCaptureError
) => void
Called when there was an unexpected runtime error while recording the video.
Type declaration​
â–¸ (error
): void
Parameters​
Name | Type |
---|---|
error | CameraCaptureError |
Returns​
void
Defined in​
types/VideoFile.ts:25
onRecordingFinished​
• onRecordingFinished: (video
: VideoFile
) => void
Called when the recording has been successfully saved to file.
Type declaration​
â–¸ (video
): void
Parameters​
Name | Type |
---|---|
video | VideoFile |
Returns​
void
Defined in​
types/VideoFile.ts:29
path​
• Optional
path: string
A custom path
where the video will be saved to.
This must be a directory, as VisionCamera will generate a unique filename itself. If the given directory does not exist, this method will throw an error.
By default, VisionCamera will use the device's temporary directory.
Defined in​
types/VideoFile.ts:21
videoCodec​
• Optional
videoCodec: "h264"
| "h265"
The Video Codec to record in.
h264
: Widely supported, but might be less efficient, especially with larger sizes or framerates.h265
: The HEVC (High-Efficient-Video-Codec) for higher efficient video recordings. Results in up to 50% smaller file-sizes.
Defined in​
types/VideoFile.ts:35