Hi,
I am able to capture audio and video by using this code
// capture callback
var captureSuccess = function(mediaFiles) {
var i, path, len;
for (i = 0, len = mediaFiles.length; i < len; i += 1) {
path = mediaFiles.fullPath;
// do something interesting with the file
}
};
// capture error callback
var captureError = function(error) {
navigator.notification.alert('Error code: ' + error.code, null, 'Capture Error');
};
// start audio capture
navigator.device.capture.captureAudio(captureSuccess, captureError, {limit:2});
Know my requirement is i want to store that audio and video which i have captured in ms sql database so that i can retrieve that video/audio anywhere and can play in any device . Can anybody tell me how to get the base64 of audio and video .