Coder Social home page Coder Social logo

adlerjs / capacitor-plugin-video-editor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dragermrb/capacitor-plugin-video-editor

0.0 0.0 0.0 238 KB

Capacitor plugin to edit videos

JavaScript 0.79% Ruby 1.63% Objective-C 1.20% Java 50.62% TypeScript 3.87% Swift 41.88%

capacitor-plugin-video-editor's Introduction

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

capacitor-plugin-video-editor's People

Contributors

dragermrb avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.