I am building native app with sencha cmd 4.0.3.74 and i can't get the camera work. I am using below code to get camera work but i just get fake sencha image.
Ext.device.Camera.capture({
success: function(img) {
image.setSrc(img);
},
failure:function(err){
console.log(err);
},
source:'camera',
quality: 75,
width: 200,
height: 200,
destination: 'data'
});
Ext.device.Camera.capture({
success: function(img) {
image.setSrc(img);
},
failure:function(err){
console.log(err);
},
source:'camera',
quality: 75,
width: 200,
height: 200,
destination: 'data'
});
Aucun commentaire:
Enregistrer un commentaire