javascript - Use Camera in Cordova? -


I'm building the Cordoba app, it supports two platforms (Ios and Android) in this app. The camera is shown in the frame. I will have a button called "Click" under the camera frame, when I click on this button, then presently show things in the camera and be saved in the gallery. Also there should be a slide bar on the left side of the camera. Using this slider, a camera can zoom in or out.

I have currently tried "org.apache.cordova.camera". But, I do not know how to present a camera in a given frame. This is bringing the default camera app and opening the camera in full screen. Please suggest me some other plugin or any method.

Thank you.

After

I'm not sure about displaying in a frame, but usually when you plug in the camera Use it to leave the fire in the native camera effectively, either the user exits until you are applying or takes a picture. It is at that level, you can handle feedback data

For example, you will have a button, link or anything when you call something like the code below. Then you can load the image in a dynamically-built canvas on an onsite callback or do something like that.

navigator.camera.getPicture (onSuccess, onFail, {quality: 40, destinationType: Camera.DestinationType.DATA_URL, encodingType: Camera.EncodingType.JPEG, targetWidth: 1600, targetHeight: 1200, sourceType : Camera.PictureSourceType.CAMERA, correctOrientation: True});


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -