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

only show front camera

$
0
0

How to just show front camera? i have my code to show camera and works fine, but its first show the rear camera. I want to disable rear camera and just to use the front one.

Here is my code=

foto.addEventListener('click',function(e){ Titanium.Media.showCamera({ success:function(e){ if (e.mediaType === Titanium.Media.MEDIA_TYPE_PHOTO){ var fotoview = Ti.UI.createView({ media:e.media, width:300, height:300, top:12, zIndex:1 }); windowregistarse.add(fotoview); }

    },
    error:function(e){
        alert('Error con la camara');
    },
    cancel:function(e){
        alert('Se cancelo la camara');
    },
    allowEditing:true,
    saveToPhotoGallery:true,
    mediaTypes:[Titanium.Media.MEDIA_TYPE_PHOTO]
});

});

else, can you give me an idea how to insert it into a local database!

Thansk!


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>