Skip to main content

Interface: 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


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

Methods

onRecordingError

onRecordingError(error): void

Called when there was an unexpected runtime error while recording the video.

Parameters

NameType
errorCameraCaptureError

Returns

void

Defined in

VideoFile.ts:30


onRecordingFinished

onRecordingFinished(video): void

Called when the recording has been successfully saved to file.

Parameters

NameType
videoVideoFile

Returns

void

Defined in

VideoFile.ts:34