Capacitor plugin to pick video files
npm install @coderpradp/capacitor-plugin-video-pickerCapacitor plugin to pick video files
``bash`
npm install @coderpradp/capacitor-plugin-video-picker
npx cap sync
`typescript
import { VideoPicker } from '@coderpradp/capacitor-plugin-video-picker';
const pickVideos = async () => {
const result = await VideoPicker.pick();
};
`
* pick()
* Interfaces
`typescript`
pick() => Promise
Returns: Promise<VideoPickerResults>
--------------------
#### 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 |