Capacitor plugin to edit videos
npm install @whiteguru/capacitor-plugin-video-editor
npx cap syncpm install @whiteguru/capacitor-plugin-video-editor@^4.0.4
npx cap syncpm install @whiteguru/capacitor-plugin-video-editor@^3.0.1
npx cap syncedit(options: EditOptions) => Promise<MediaFileResult>| Param | Type |
|---|---|
options |
EditOptions |
Returns: Promise<MediaFileResult>
thumbnail(options: ThumbnailOptions) => Promise<MediaFileResult>| Param | Type |
|---|---|
options |
ThumbnailOptions |
Returns: Promise<MediaFileResult>
addListener(eventName: 'transcodeProgress', listenerFunc: (info: ProgressInfo) => void) => Promise<PluginListenerHandle> & PluginListenerHandle| Param | Type |
|---|---|
eventName |
'transcodeProgress' |
listenerFunc |
(info: ProgressInfo) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
| Prop | Type |
|---|---|
file |
MediaFile |
| Prop | Type | Description |
|---|---|---|
name |
string |
The name of the file, without path information. |
path |
string |
The full path of the file, including the name. |
type |
string |
The file's mime type |
size |
number |
The size of the file, in bytes. |
| Prop | Type |
|---|---|
path |
string |
trim |
TrimOptions |
transcode |
TranscodeOptions |
| Prop | Type | Description |
|---|---|---|
startsAt |
number |
StartsAt in milliseconds |
endsAt |
number |
EndsAt in milliseconds |
| Prop | Type |
|---|---|
height |
number |
width |
number |
keepAspectRatio |
boolean |
| Prop | Type | Description |
|---|---|---|
path |
string |
|
at |
number |
The time position where the frame will be retrieved in milliseconds. |
width |
number |
|
height |
number |
| Prop | Type |
|---|---|
remove |
() => Promise<void> |
| Prop | Type |
|---|---|
progress |
number |