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!