Interface: RecordVideoOptions
Properties​
fileType​
• Optional
fileType: VideoFileType
Sets the file type to use for the Video Recording.
default
"mov"
Defined in​
flash​
• Optional
flash: "off"
| "auto"
| "on"
Set the video flash mode. Natively, this just enables the torch while recording.
Defined in​
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​
Methods​
onRecordingError​
â–¸ onRecordingError(error
): void
Called when there was an unexpected runtime error while recording the video.
Parameters​
Name | Type |
---|---|
error | CameraCaptureError |
Returns​
void
Defined in​
onRecordingFinished​
â–¸ onRecordingFinished(video
): void
Called when the recording has been successfully saved to file.
Parameters​
Name | Type |
---|---|
video | VideoFile |
Returns​
void