RecordVideoOptions
Properties​
fileType​
• Optional fileType: VideoFileType
Sets the file type to use for the Video Recording.
Default
"mov"
Defined in​
VideoFile.ts:26
flash​
• Optional flash: "off" | "auto" | "on"
Set the video flash mode. Natively, this just enables the torch while recording.
Defined in​
VideoFile.ts:21
onRecordingError​
• onRecordingError: (error: CameraCaptureError) => void
Type declaration​
â–¸ (error): void
Called when there was an unexpected runtime error while recording the video.
Parameters​
| Name | Type |
|---|---|
error | CameraCaptureError |
Returns​
void
Defined in​
VideoFile.ts:30
onRecordingFinished​
• onRecordingFinished: (video: VideoFile) => void
Type declaration​
â–¸ (video): void
Called when the recording has been successfully saved to file.
Parameters​
| Name | Type |
|---|---|
video | VideoFile |
Returns​
void
Defined in​
VideoFile.ts:34
videoCodec​
• Optional videoCodec: CameraVideoCodec
Set the video codec to record in. Different video codecs affect video quality and video size.
To get a list of all available video codecs use the getAvailableVideoCodecs() function.
Default
undefined
Platform
iOS
Defined in​
VideoFile.ts:42