如何改变科尔多瓦相机插件选项 [英] How to change Cordova camera plugin options
问题描述
我用的相机科尔多瓦插件。它工作正常。但我有两个问题。其中之一;之后,我拍摄照片2按钮出现。他们的名字是保存和放弃。我要他们确认和取消重命名。我怎样才能做到这一点?另一个问题;保存照片后,我的照片正在转向。我如何阻止呢?
-
保存/放弃 - 你不能在psented给您科尔多瓦照相机API $ P $做到这一点。
你需要编写自己的插件,它使用了SurfaceView
(更
细节<一个href=\"http://stackoverflow.com/questions/16297606/android-take-camera-picture-without-save-delete-confirmation\">here). -
这是一个已知的Android的问题 - 它忽略了
correctOrientation
参数 - 我相信,但它上传在正确的方向的照片。它只是不正确地显示。
I am using cordova camera plugin. It works fine. But i have two problems. One of them; after i capture photo 2 buttons appear. Their names are "Save" and "Discard". I want to rename them with "confirm" and "Cancel". How can i do this? an other question; after Saving photo, my photo is turning. How can i block this?
Save/Discard - you can't do this in the Cordova Camera API presented to you. You'd need to write your own plugin which uses a
SurfaceView
(more detail here).This is a known Android issue - it ignores the
correctOrientation
parameter - I believe however that it uploads the photo in the correct orientation. It just is not shown correctly.
这篇关于如何改变科尔多瓦相机插件选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!