javascript - Use Camera in Cordova? -



javascript - Use Camera in Cordova? -

i building cordova app. supports 2 platform (ios , android). in have show photographic camera in given frame of app. below frame of camera, there button named "click". when click button, showing things in photographic camera should captured , saved gallery. there should slide bar on left of camera. using slider, 1 can zoom in or zoom out camera.

currently have tried "org.apache.cordova.camera" http://plugins.cordova.io/#/package/org.apache.cordova.camera. but, don't know how nowadays photographic camera in given frame. invoking default photographic camera app , photographic camera opening in total screen. please suggest me plugin or method.

thanks.

i'm not sure displaying in frame, typically when utilize photographic camera plugin fires native photographic camera leaving you're app until user either exits or takes picture. @ stage can handle response data.

so example, have button, link or whatever when clicked phone call code below. can on onsuccess callback load image dynamically created canvas or that.

class="snippet-code-html lang-html prettyprint-override">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 });

javascript cordova jquery-plugins camera cordova-plugins

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -