默认情况下,在视频通话时不使用手电筒。一旦视频通话开始直到结束,需要手电筒自动开启。
使用以下方法打开手电筒:
·CameraManager.setTorchMode(cameraId,true);
·这是使用URL:https://medium.com/@ssaurel/create-a-torch-flashlight-application-for-android-c0b6951855c中描述的步骤完成的
作为参考,这里是解释上述方法的URL:https://developer.android.com/reference/android/hardware/camera/CameraManager#setTorchMode(java.lang.String,boolean)