6.0.2 • Published 10 months ago
@coderpradp/capacitor-plugin-video-picker v6.0.2
capacitor-plugin-video-picker
Capacitor plugin to pick video files
Install
npm install @coderpradp/capacitor-plugin-video-picker
npx cap sync
Usage
import { VideoPicker } from '@coderpradp/capacitor-plugin-video-picker';
const pickVideos = async () => {
const result = await VideoPicker.pick();
};
API
pick()
pick() => Promise<VideoPickerResults>
Returns: Promise<VideoPickerResults>
Interfaces
VideoPickerResults
Prop | Type |
---|---|
files | VideoPickerResult[] |
VideoPickerResult
Prop | Type | Description |
---|---|---|
path | string | File Path |
webPath | string | webPath returns a path that can be used to set the src attribute of an image for efficient loading and rendering. |
name | string | File Name |
extension | string | File Extensions |