Problem Description
If you add an overlay to the camera view, the live image being showed will be deformed.
Steps to reproduce
1.Create a new mobile project (classic titanium)
2. Copy this code to app.js:
var window = Titanium.UI.createWindow({
backgroundColor:'#fff',
});
var overlay = Titanium.UI.createView({
height:'100%',
width:'100%',
});
Titanium.Media.showCamera({
success:function(event){
alert('success');
},
error:function(e){
alert(e.error);
},
cancel:function(){
},
overlay:overlay,
});
window.open();
3. Deploy the app into a device.
4. Launch the app.
No comments