# cordova-plugin-video-trimmer

> Cordova Video Trimmer Plugin

Latest version **1.0.10** (published 2016-04-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install cordova-plugin-video-trimmer
pnpm add cordova-plugin-video-trimmer
yarn add cordova-plugin-video-trimmer
bun add cordova-plugin-video-trimmer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.10 |
| Published | 2016-04-19 |
| First published | 2016-04-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Josh Bavari |
| Maintainers | gokulms |

## Links

- npm: https://www.npmjs.com/package/cordova-plugin-video-trimmer
- Repository: https://github.com/Neologixgithub/video_trimmer
- Homepage: https://github.com/Neologixgithub/video_trimmer#readme
- Issues: https://github.com/Neologixgithub/video_trimmer/issues
- npm.io page: https://npm.io/package/cordova-plugin-video-trimmer

## Recent versions

- 1.0.10 (latest) — 2016-04-19
- 1.0.9 — 2016-04-19
- 1.0.8 — 2016-04-19
- 1.0.2 — 2016-04-19
- 1.0.1 — 2016-04-18
- 1.0.0 — 2016-04-18

## README

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
```javascript
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);
}

---
_Source: https://npm.io/package/cordova-plugin-video-trimmer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
