Disable front facing camera in application created with Cordova?

Viewed 359

My Sencha touch hybrid application provides user the ability to take photos from application using the device native camera with Cordova plugin. But I want to disable the front facing camera. User should not be able to switch between front and rear cameras. I tried cameraDirection values 1 and 0 but that only helps to switch between Front and rear cameras and not to disable the front camera. Any help would be greatly appreciated.

navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 50, destinationType: navigator.camera.DestinationType.DATA_URL, correctOrientation: true, cameraDirection: 0 });
1 Answers
Related