Skip to content

AdlerJS/capacitor-plugin-video-editor

 
 

Repository files navigation

capacitor-plugin-video-editor

Capacitor plugin to edit videos

Install

npm install @whiteguru/capacitor-plugin-video-editor
npx cap sync

or for Capacitor 4.x

pm install @whiteguru/capacitor-plugin-video-editor@^4.0.4
npx cap sync

or for Capacitor 3.x

pm install @whiteguru/capacitor-plugin-video-editor@^3.0.1
npx cap sync

API

edit(...)

edit(options: EditOptions) => Promise<MediaFileResult>
Param Type
options EditOptions

Returns: Promise<MediaFileResult>


thumbnail(...)

thumbnail(options: ThumbnailOptions) => Promise<MediaFileResult>
Param Type
options ThumbnailOptions

Returns: Promise<MediaFileResult>


addListener('transcodeProgress', ...)

addListener(eventName: 'transcodeProgress', listenerFunc: (info: ProgressInfo) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
Param Type
eventName 'transcodeProgress'
listenerFunc (info: ProgressInfo) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


Interfaces

MediaFileResult

Prop Type
file MediaFile

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.

EditOptions

Prop Type
path string
trim TrimOptions
transcode TranscodeOptions

TrimOptions

Prop Type Description
startsAt number StartsAt in milliseconds
endsAt number EndsAt in milliseconds

TranscodeOptions

Prop Type
height number
width number
keepAspectRatio boolean

ThumbnailOptions

Prop Type Description
path string
at number The time position where the frame will be retrieved in milliseconds.
width number
height number

PluginListenerHandle

Prop Type
remove () => Promise<void>

ProgressInfo

Prop Type
progress number

About

Capacitor plugin to edit videos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 50.6%
  • Swift 41.9%
  • TypeScript 3.9%
  • Ruby 1.6%
  • Objective-C 1.2%
  • JavaScript 0.8%