I've added a square view on my window and I would like to be able to show camera image in the view.
var containerView = Ti.UI.createView({ height: 150, width: 150, backgroundColor: "blue", }); win.add(containerView)How can I intergrate such code into the containerView?
Ti.Media.showCamera({ success: function(e){}, error: function (e) {}, cancel: function (e) { }, allowEditing: false, showControls: true, saveToPhotoGallery: false, mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO], videoQuality: Ti.Media.QUALITY_HIGH, overlay: myOverlay /***Implement crosshair overlay***/ });