Skip to content

akash-pal/cordova-trim-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-trim-plugin

Trim videos with custom layout.

Installation

 cordova plugin add cordova-trim-plugin

Example

 VideoTrim.trim(
      trimSuccess,
      trimFail,
      {
          path: url, // path to input video,
          limit : 20 // max limit, only for android
      }
  );

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