Archived and Closed
This conversation is no longer open for comments or replies and is no longer visible to community members.
Hi Team,
I want to record video in project(android+phone gap), So i used capture API. After finishing video recording I want to get file details(name,path and size). In that way I am using phone gap api but it showing tat and all undefined.
Please tell me any other solutions for my problem.
please find my code here,
code:
function captureVideo() {
navigator.device.capture.captureVideo(captureSuccess, captureError, {limit: 1});
}
function captureSuccess(mediaFile) {
alert("captureSuccess");
alert("mediaFile : "+mediaFile);
alert("path : "+mediaFile.fullPath+", name : "+mediaFile.name+", type : "+mediaFile.type+", size : "+mediaFile.size);
}
// Called if something bad happens.
function captureError(error) {
var msg = 'An error occurred during capture: ' + error.code;
navigator.notification.alert(msg, null, 'Uh oh!');
}
Thank you,
Prasad.
I want to record video in project(android+phone gap), So i used capture API. After finishing video recording I want to get file details(name,path and size). In that way I am using phone gap api but it showing tat and all undefined.
Please tell me any other solutions for my problem.
please find my code here,
code:
function captureVideo() {
navigator.device.capture.captureVideo(captureSuccess, captureError, {limit: 1});
}
function captureSuccess(mediaFile) {
alert("captureSuccess");
alert("mediaFile : "+mediaFile);
alert("path : "+mediaFile.fullPath+", name : "+mediaFile.name+", type : "+mediaFile.type+", size : "+mediaFile.size);
}
// Called if something bad happens.
function captureError(error) {
var msg = 'An error occurred during capture: ' + error.code;
navigator.notification.alert(msg, null, 'Uh oh!');
}
Thank you,
Prasad.
