Android Question silence the shutter

AlpVir

Well-Known Member
Licensed User
Longtime User
I am using the CamEx library and am unable to silence the shutter.
I entered into CameraExClass the public sub :
B4X:
Public Sub EnableShutterSound(Enabled As Boolean) As Boolean
    r.target = nativeCam
    Return r.RunMethod2("enableShutterSound", Enabled, "java.lang.boolean")
End Sub

and I called EnableShutterSound in the InitializeCamera sub :
B4X:
    camEx.Initialize(PanelCamera, frontCamera, Me, "Camera1")
    camEx.EnableShutterSound(False)
The log is as follows :


thank you in advance
 

drgottjr

Expert
Licensed User
Longtime User
maybe see if this leads you anywhere. tests first to see if you can disable the shutter sound. might help to know...
B4X:
Camera.CameraInfo info = new Camera.CameraInfo();
Camera.getCameraInfo(id, info);
if (info.canDisableShutterSound) {
    mCamera.enableShutterSound(false);
}
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…