hi.. Ti.Media.swichCamera is not working in titanium for android. I need to switch between the two cameras and take photos.Has anyone solved this issue?
1 Answer
are you sure the function is supported on android? did you do a clean build before running your app?
I would add this function to make sure that it is recognizing the rear camera
var cameras = Ti.Media.availableCameras; for (var c=0;c<cameras.length;c++) { // if we have a rear camera ... we add switch button if (cameras[c]==Ti.Media.CAMERA_REAR) { alert(Ti.Media.CAMERA_REAR); } else if (cameras[c]==Ti.Media.CAMERA_FRONT ) { alert(Ti.Media.CAMERA_FRONT); } }
Your Answer
Think you can help? Login to answer this question!