Hi Team,
I want to record video from camera by using phone gap API. but i didn't get code from phone docs. Phone gap's documentation suggests that there is a single method to access the camera, camera.getPicture().
Please tell solution for my problem.
Thank you,
Siva.
I want to record video from camera by using phone gap API. but i didn't get code from phone docs. Phone gap's documentation suggests that there is a single method to access the camera, camera.getPicture().
Please tell solution for my problem.
Thank you,
Siva.
- 62 Posts
- 0 Reply Likes
Posted 8 years ago
- 8261 Posts
- 263 Reply Likes
Hi Gudluri
It's available on Capture API instead of Camera.
http://docs.phonegap.com/en/2.2.0/cor...
Cheers
-Amir
It's available on Capture API instead of Camera.
http://docs.phonegap.com/en/2.2.0/cor...
Cheers
-Amir
- 62 Posts
- 0 Reply Likes
Hi Amir,
Thank you for your kind response.
I found it.
Thank you,
Prasad.
Thank you for your kind response.
I found it.
Thank you,
Prasad.
- 62 Posts
- 0 Reply Likes
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.
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers
