react-native-vision-camera/docs/docs/api/interfaces/videofile.recordvideooptions.md
Marc Rousavy 0b7b4d50b5
Automatically build API documentation (#11)
* Automatically build API documentation using Typedoc and Docusaurus
* Move MD and move to MDX for Docusaurus Guides
2021-03-03 12:37:43 +01:00

2.1 KiB

id title sidebar_label custom_edit_url hide_title
videofile.recordvideooptions Interface: RecordVideoOptions VideoFile.RecordVideoOptions null true

Interface: RecordVideoOptions

VideoFile.RecordVideoOptions

Properties

flash

Optional flash: undefined | off | auto | on

Set the video flash mode. Natively, this just enables the torch while recording.

Defined in: src/VideoFile.ts:36


onRecordingError

onRecordingError: (error: CameraCaptureError) => void

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

Type declaration:

▸ (error: CameraCaptureError): void

Parameters:

Name Type
error CameraCaptureError

Returns: void

Defined in: src/VideoFile.ts:40

Defined in: src/VideoFile.ts:40


onRecordingFinished

onRecordingFinished: (video: Readonly<Readonly<{ path: string }> & { duration: number ; size: number }>) => void

Called when the recording has been successfully saved to file.

Type declaration:

▸ (video: Readonly<Readonly<{ path: string }> & { duration: number ; size: number }>): void

Parameters:

Name Type
video Readonly<Readonly<{ path: string }> & { duration: number ; size: number }>

Returns: void

Defined in: src/VideoFile.ts:44

Defined in: src/VideoFile.ts:44