Represents a Video taken by the Camera written to the local filesystem.

Related: Camera.startRecording(), Camera.stopRecording()

interface VideoFile {
    duration: number;
    height: number;
    path: string;
    width: number;
}

Hierarchy (view full)

Properties

duration: number

Represents the duration of the video, in seconds.

height: number

The height of the video, in pixels.

path: string

The path of the file.

  • Note: If you want to consume this file (e.g. for displaying it in an <Image> component), you might have to add the file:// prefix.

  • Note: This file might get deleted once the app closes because it lives in the temp directory.

width: number

The width of the video, in pixels.