This Plugin is still under development. Please do not use it, yet.
A plugin to pick videos from the camera roll and edit them.
npm install capacitor-video-editor
npx cap sync
getVideos(options: VideoOptions) => any
Param | Type |
---|---|
options |
VideoOptions |
Returns: any
checkPermissions() => any
Returns: any
requestPermissions(permissions?: VideoEditorPluginPermissions | undefined) => any
Param | Type |
---|---|
permissions |
VideoEditorPluginPermissions |
Returns: any
trim(options: TrimOptions) => any
Param | Type |
---|---|
options |
TrimOptions |
Returns: any
concatVideos(paths: ConcatOptions) => any
Param | Type |
---|---|
paths |
ConcatOptions |
Returns: any
Prop | Type |
---|---|
maxVideos |
number |
amountThumbnails |
number |
Prop | Type |
---|---|
videos |
{} |
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 |
Prop | Type |
---|---|
camera |
"prompt" | "prompt-with-rationale" | "granted" | "denied" | "limited" |
videos |
"prompt" | "prompt-with-rationale" | "granted" | "denied" | "limited" |
Prop | Type |
---|---|
permissions |
{} |
Prop | Type |
---|---|
start |
string |
end |
string |
path |
string |
extension |
string |
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 |
Prop | Type |
---|---|
path |
string |
start |
string |
duration |
string |