@coderpradp/capacitor-plugin-video-picker
v7.0.0
Published
Capacitor plugin to pick video files
Downloads
33
Readme
capacitor-plugin-video-picker
Capacitor plugin to pick video files
Install
npm install @coderpradp/capacitor-plugin-video-picker
npx cap syncUsage
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 |
