Reputation: 55
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?
Upvotes: 3
Views: 1181
Reputation: 55
after i add correctOrientation in my code, it shown phooto correctly.
navigator.camera.getPicture(photoCaptured,photoCapturedFail, { quality: 50, destinationType: Camera.DestinationType.DATA_URL, correctOrientation: true });
Upvotes: 1
Reputation: 6242
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.
Upvotes: 2