NativeScript Video Editor
Prerequisites / Requirements
Note Android min-sdk is 18
Installation
Describe your plugin installation steps. Ideally it would be something like:
tns plugin add nativescript-video-editor
Usage
Transcode
;// parameters passed to transcodeVideoVideoEditor.transcodeVideo filePath, // the path to the video on the device 'outputFileName', // the file name for the transcoded video width, height, videoBitrate, fps, saveToLibrary, // optional, defaults to true // info will be a number from 0 to 100.then.catch
Create a JPEG thumbnail from a video
;VideoEditor.createThumbnail filePath, // the path to the video on the device 'outputFileName', // the file name for the JPEG image 60, // optional, location in the video to create the thumbnail (in seconds) 320, // optional, width of the thumbnail 480, // optional, height of the thumbnail 100 // optional, quality of the thumbnail (between 1 and 100).then.catch
Get info on a video (width, height, orientation, duration, size, & bitrate)
;VideoEditor.getVideoInfo filePath, // the path to the video on the device.then .catch
License
Apache License Version 2.0, January 2004