media-captura
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

media-capture

Plugin Capacitor Media capture

Install

npm install media-capture
npx cap sync

API

captureVideo(...)

captureVideo(options: CaptureVideoOptions) => Promise<MediaFileResult>
Param Type
options CaptureVideoOptions

Returns: Promise<MediaFileResult>


Interfaces

MediaFileResult

Prop Type
file MediaFile

MediaFile

Prop Type Description
name string The name of the file, without path information.
path string The full path of the file, including the name.
type string The file's mime type
size number The size of the file, in bytes.

CaptureVideoOptions

Prop Type Description
duration number Maximum duration per video clip.
quality 'uhd' | 'fhd' | 'hd' | 'sd' Quality of the video. uhd for 4K ultra HD video size (2160p). fhd for full HD video size (1080p). hd for HD video size (720p). sd for SD video size (480p).
sizeLimit number Max file size in bytes.

Readme

Keywords

Package Sidebar

Install

npm i media-captura

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

95 kB

Total Files

47

Last publish

Collaborators

  • thefrikz18