Skip to content

Record video from user browser or device, cross platform (Web, Cordova).

Notifications You must be signed in to change notification settings

tparkin/meteor-video-capture

 
 

Repository files navigation

lukemadera:video-capture

Record video from user browser or device, cross platform (Web, Cordova).

Demo

Demo

Source

Dependencies

[none]

Installation

In a Meteor app directory:

meteor add lukemadera:video-capture

Usage

{{> lmVideoCapture opts=opts}}
if(Meteor.isClient) {
  Template.videoCaptureBasic.helpers({
    opts: function() {
      var opts ={
        // maxTime: 15,
        // androidQuality: 0,
        // videoDisplay: {
        //   width: 600,
        //   height: 460
        // },
        // classes: {
        //   recordBtn: 'video-capture-basic-record-btn',
        //   stopBtn: 'video-capture-basic-stop-btn'
        // },
        onVideoRecorded: function(err, base64Data) {
          console.log('onVideoRecorded');
        }
      };
      return opts;
    }
  });
}

Then do whatever you want (e.g. save to Amazon S3) with the base64Data that is returned in the onVideoRecorded callback.

About

Record video from user browser or device, cross platform (Web, Cordova).

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.8%
  • HTML 5.3%
  • CSS 2.9%