Nrgl
Nrgl

Reputation: 55

How to change Cordova camera plugin options

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

Answers (2)

Nrgl
Nrgl

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

keldar
keldar

Reputation: 6242

  1. 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).

  2. 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

Related Questions