Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229534

Help me with cordova camera?

$
0
0

Camera.getPicture().then(function(dataURL) {
setTimeout(function() {
alert("dataURL:" + dataURL);}, 0);
$scope.lastPhoto = "data:image/jpeg;base64," + dataURL;
$scope.photoData = dataURL;
}, function(err) {
alert(err);
}, {
quality: 75,
destinationType: Camera.DestinationType.DATA_URL,
targetWidth: 320,
targetHeight: 320,
saveToPhotoAlbum: false,
cameraDirection: Camera.Direction.FRONT
}

I am trying to get the Camera to face in front, but it doesn't work. Any help?
Also, DestinationType doesn't work. It is giving me nothing now, no alerts or anything.


Viewing all articles
Browse latest Browse all 229534

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>