I use this function to record video using Cordova + Phonegap :
$scope.captureVideo = function() {
var options = { limit: 1, duration: 5, saveToPhotoAlbum: true };
$cordovaCapture.captureVideo(options).then(function(videoData) {
var i, path, len;
for (i = 0, len = videoData.length; i < len; i += 1) {
path = videoData[i].fullPath;
///*******************************************//
// Here I need to save the video in gallery. ????
//********************************************//
}
}, function(err) { });
}
After the video is recorded I need to save it in gallery?