How to restrict the plugin to switch rear/back camera in android / cordova

Viewed 1050

I am using media-capture plugin of cordova to capture the video only from front camera. when it opens the camera, there is option to switch the back or rear camera, can anyone please guide, how to disable switching to back camera. I have done following modification in plugin and re added to app, but no luck.

intent.putExtra("android.intent.extras.LENS_FACING_BACK", 0);
intent.putExtra("android.intent.extra.USE_BACK_CAMERA", false);
1 Answers
Related