A simple Cordova/Phonegap plugin to capture video and then display it onscreen via a transparent overlay without affecting app functionality.
cordova plugin add https://github.com/jamesla/backgroundvideo.git
cordova.plugins.backgroundvideo.start(filename, cameradirection, shouldRecordAudio, successfn, errorfn);
cordova.plugins.backgroundvideo.start('myvideo', 'front', true, null, null);
cordova.plugins.backgroundvideo.stop(successFn, errorFn);
Camera 'front' or 'back' to specify camera direction.
File
- Outputs as mp4. You do not need to specify file extension.
- Video files are saved to approot/tmp folder (cordova.plugins.backgroundvideo.stop() will return the file path).
Please use the github issue tracker and we will come back to you as soon as we can.
There's lots of Android phones all with their own quirks so we'd love it if you could contribute and help us support all of the devices out there.