npm npm #NativeScript VideoRecorder

##Install tns plugin add nativescript-videorecorder

###Usage

###Android

var vr = require("nativescript-videorecorder");
var videorecorder = new vr.VideoRecorder();
var options = {
    saveToGallery:true, //default false | optional
    duration:30, //(seconds) default no limit | optional
    size:10, //(MB) default none | optional #android
    hd:true, //default  false low res | optional
    explanation:"Why do i need this permission" //optional on api 23 #android
}
videorecorder.record(options)
.then((data)=>{
    console.log(data.file)
})
.catch((err)=>{
    console.log(err)
})