Skip to content

Plugin for cordova for custom video recorder that has pause/resume feature

Notifications You must be signed in to change notification settings

sudohalt/cordova-plugin-pause-video-capture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cordova Plugin Pause Video Capture

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.

Install

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

Usage

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).

About

Plugin for cordova for custom video recorder that has pause/resume feature

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published