Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@whiteguru/capacitor-plugin-media-capture

Package Overview
Dependencies
Maintainers
1
Versions
9
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

  • 6.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@whiteguru/capacitor-plugin-media-capture

Capacitor plugin to capture audio and video

Install (Capacitor 6.x)

npm install @whiteguru/capacitor-plugin-media-capture
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

FAQs

Package last updated on 16 Dec 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc