Project: titanium
Issue TIMOB-23427: Windows: Camera controls are not showing
h6.Issue Description Trying to check the camera feature in Windows Platform but the default camera controls are not shown an also front camera is opened. We are unable to capture a picture. Even tried placing the overlay didn't help. We are using titanium SDK 5.2.2.GA. Please find the attached screen shot and code. h6.Test Case {code} var win = Ti.UI.createWindow({ layout : 'vertical', backgroundColor : 'white' }); var button = Ti.UI.createButton({ title : 'take picture', color : 'black' }); button.addEventListener('click', function() { Ti.Media.showCamera({ 'cancel' : function() { Ti.API.info('cancel'); }, 'error' : function() { Ti.API.info('error'); }, 'success' : function(e) { Ti.API.info('success: size=' + e.media.length); imageView.image = e.media; } }); }); win.add(button); var imageView = Ti.UI.createImageView(); win.add(imageView); // setTimeout(function() { // Ti.Media.hideCamera(); // }, 3000); win.open(); {code}
Story points: 5