如何改变科尔多瓦相机插件选项科尔、插件、选项、相机

2023-09-06 08:56:17 作者:⒐匴恨,彵请壹ьеι子

我用的相机科尔多瓦插件。它工作正常。但我有两个问题。其中之一;之后,我拍摄照片2按钮出现。他们的名字是保存和放弃。我要他们确认和取消重命名。我怎样才能做到这一点?另一个问题;保存照片后,我的照片正在转向。我如何阻止呢?

解决方案

保存/放弃 - 你不能在psented给您科尔多瓦照相机API $ P $做到这一点。你需要编写自己的插件,它使用了 SurfaceView (更细节here).

这是一个已知的Andr​​oid的问题 - 它忽略了 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.

 
精彩推荐