0.0.10 • Published 2 years ago
capacitor-video-editor
This Plugin is still under development. Please do not use it, yet.
A plugin to pick videos from the camera roll and edit them.
Install
npm install capacitor-video-editor
npx cap sync
API
getVideos(...)
getVideos(options: VideoOptions) => any
Param | Type |
---|
options | VideoOptions |
Returns: any
checkPermissions()
checkPermissions() => any
Returns: any
requestPermissions(...)
requestPermissions(permissions?: VideoEditorPluginPermissions | undefined) => any
Param | Type |
---|
permissions | VideoEditorPluginPermissions |
Returns: any
trim(...)
trim(options: TrimOptions) => any
Param | Type |
---|
options | TrimOptions |
Returns: any
concatVideos(...)
concatVideos(paths: ConcatOptions) => any
Param | Type |
---|
paths | ConcatOptions |
Returns: any
Interfaces
VideoOptions
Prop | Type |
---|
maxVideos | number |
amountThumbnails | number |
ReturnVideos
Video
Prop | Type | Description | Since |
---|
path | string | The path will contain a full, platform-specific file URL that can be read later using the Filsystem API. | 1.0.0 |
webPath | string | webPath returns a path that can be used to set the src attribute of an video element for efficient loading and rendering. | 1.0.0 |
exif | any | Exif data, if any, retrieved from the video | 1.0.0 |
extension | string | format of the video | 1.0.0 |
thumbnails | string | The webpaths to the generated thumbnails | 1.0.0 |
duration | string | The duration of the video in seconds | 1.0.0 |
size | string | The size of the video in bytes | 1.0.0 |
PermissionStatus
Prop | Type |
---|
camera | "prompt" | "prompt-with-rationale" | "granted" | "denied" | "limited" |
videos | "prompt" | "prompt-with-rationale" | "granted" | "denied" | "limited" |
VideoEditorPluginPermissions
TrimOptions
Prop | Type |
---|
start | string |
end | string |
path | string |
extension | string |
ConcatOptions
The path will contain a full,
platform-specific file URL that can be read later using the Filsystem API.
Prop | Type |
---|
videos | {} |
audio | string |
amountThumbnails | number |
ConcatItem
Prop | Type |
---|
path | string |
start | string |
duration | string |