1.0.10 • Published 8 years ago

cordova-plugin-video-trimmer v1.0.10

Weekly downloads
14
License
MIT
Repository
github
Last release
8 years ago

This is a cordova plugin to assist in several video editing tasks such as:

  • Trimming

Installation

cordova plugin add cordova-plugin-video-trimmer

VideoTrimmer will be available in the window after deviceready.

Usage

Trim a Video

VideoEditor.trim(
    trimSuccess,
    trimFail,
    {
        fileUri: 'file-uri-here', // path to input video
        trimStart: 5, // time to start trimming in seconds
        trimEnd: 15, // time to end trimming in seconds
        outputFileName: 'output-name', // output file name
        progress: function(info) {} // optional, see docs on progress
    }
);

function trimSuccess(result) {
    // result is the path to the trimmed video on the device
    console.log('trimSuccess, result: ' + result);
}

function trimFail(err) {
    console.log('trimFail, err: ' + err);
}
1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago