🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@whiteguru/capacitor-plugin-media-capture

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@whiteguru/capacitor-plugin-media-capture

Capacitor plugin to capture video

latest
Source
npmnpm
Version
7.0.1
Version published
Weekly downloads
35
-41.67%
Maintainers
1
Weekly downloads
 
Created
Source

@whiteguru/capacitor-plugin-media-capture

Capacitor plugin to capture audio and video

Install (Capacitor 7.x)

npm install @whiteguru/capacitor-plugin-media-capture
npx cap sync

Install (Capacitor 6.x)

npm install @whiteguru/capacitor-plugin-media-capture@^6.0.1
npx cap sync

or for Capacitor 5.x

npm install @whiteguru/capacitor-plugin-media-capture@^5.0.1
npx cap sync

or for Capacitor 4.x

npm install @whiteguru/capacitor-plugin-media-capture@^4.0.1
npx cap sync

iOS

iOS not available jet

Android

This API requires the following permissions be added to your AndroidManifest.xml:

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />

Read about Setting Permissions in the Android Guide for more information on setting Android permissions.

Variables

This plugin needs compileSdkVersion = 31 variable (defined in your app's variables.gradle file)

API

captureVideo(...)

captureVideo(options: CaptureVideoOptions) => Promise<MediaFileResult>
ParamType
optionsCaptureVideoOptions

Returns: Promise<MediaFileResult>

Interfaces

MediaFileResult

PropType
fileMediaFile

MediaFile

PropTypeDescription
namestringThe name of the file, without path information.
pathstringThe full path of the file, including the name.
typestringThe file's mime type
sizenumberThe size of the file, in bytes.

CaptureVideoOptions

PropTypeDescription
durationnumberMaximum 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).
frameRatenumberFramerate (default 30)
sizeLimitnumberMax file size in bytes.

Keywords

capacitor

FAQs

Package last updated on 25 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts