Plugin for cordova for custom video recorder that has pause/resume feature.
I created this plugin because there was no plugin I was aware of that offered the ability to pause videos while recording and then resume. Currently this plugin only works for iOS, and I am currently looking into supporting other platforms.
codova plugin install https://github.com/sudohalt/cordova-plugin-pause-video-capture
Or
ionic plugin install https://github.com/sudohalt/cordova-plugin-pause-video-capture
The plugin creates a global variable called window.pauseVideoCapture which contains the functions for this plugin. There is only one function called pauseVideoCapture, which opens up your camera and allows you to take videos, replay videos, and retake videos.
options = {duration:180, decrement:true};
window.pauseVideoCapture.pauseVideoCapture(options,
function(videoData) {
console.log("success");
$scope.videoData = videoData;
},
function(error) {
console.log("error");
console.log(error);
$scope.videoData = null;
}
);The "duration" option indicates the max video duration (leave empty or 0 for no limit), and the decrement variable is the way you want the timer to look if you have a duration set (either decrementing or incrementing).