Get more information: http://docs.phonegap.com/en/2.1.0/cordova_media_capture_capture.md.html#CaptureVideo
If you use captureVideo, your video will be automatically saved and to access it, try the following:
function captureSuccess(mediaFiles) { alert(mediaFiles[0].fullPath); }
Note: put null in parameter or limit: 1
Full example:
function captureSuccess(mediaFiles) { alert(mediaFiles[0].fullPath); } function captureError(error) { alert('An error occurred during capture: ' + error.code); } function captureVideo() { navigator.device.capture.captureVideo(captureSuccess, captureError, null); }
source share