Skip to content
No description, website, or topics provided.
TypeScript Shell JavaScript
Branch: master
Clone or download
triniwiz Merge pull request #1 from edusperoni/patch-1
Add videoHeight to video info
Latest commit 2402d36 Jul 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Initial commit Mar 21, 2019
demo Initial commit Mar 21, 2019
publish v0.0.1 Mar 21, 2019
src Add videoHeight to video info Jul 18, 2019
.gitignore Initial commit Mar 21, 2019
.travis.yml Initial commit Mar 21, 2019
LICENSE Initial commit Mar 21, 2019
README.md v0.0.1 Mar 21, 2019
tslint.json Initial commit Mar 21, 2019

README.md

NativeScript Video Editor

Build Status NPM version Downloads Twitter Follow

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

import { VideoEditor } from 'nativescript-video-editor';
// parameters passed to transcodeVideo
VideoEditor.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
            function(progress) {} // info will be a number from 0 to 100
).then(function(file){})
.catch(function(error) {})

Create a JPEG thumbnail from a video

import { VideoEditor } from 'nativescript-video-editor';
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(function(file){})
.catch(function(error) {})

Get info on a video (width, height, orientation, duration, size, & bitrate)

import { VideoEditor } from 'nativescript-video-editor';
VideoEditor.getVideoInfo(
        filePath, // the path to the video on the device
).then(function(info){})
 .catch(function(error) {})

License

Apache License Version 2.0, January 2004

You can’t perform that action at this time.