Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Add Ti.Media.showCamera() into created view

$
0
0

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***/
    });

Viewing all articles
Browse latest Browse all 8068

Trending Articles