Not as it is, but could be done if you were building a modified version (can be done if following the GPL licence).
A quick hack to disable front camera might be to make CameraControlleraManager[1/2].getNumberOfCameras() always return 1.
Disabling video might be harder. Perhaps:
* Disabling the R.id.switch_video button.
* Making MyApplicationInterface.isVideoPref() always return false.
* Making Preview.switchVideo() do nothing.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2023-03-03
Disable camera
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I really like your app, but I was wondering if it's possible to disable video and selfie camera completely from the application?
Not as it is, but could be done if you were building a modified version (can be done if following the GPL licence).
A quick hack to disable front camera might be to make CameraControlleraManager[1/2].getNumberOfCameras() always return 1.
Disabling video might be harder. Perhaps:
* Disabling the R.id.switch_video button.
* Making MyApplicationInterface.isVideoPref() always return false.
* Making Preview.switchVideo() do nothing.
Disable camera