1.在camerasetting里面添加摄像机前后切换及闪光灯的开启。
//前后摄像头切换
public void SwitchCameraDirection(){
CameraDevice.Instance.Stop ();
CameraDevice.Instance.Deinit ();
//转换为前置摄像头
CameraDevice.Instance.Init (CameraDevice.CameraDirection.CAMERA_FRONT);
CameraDevice.Instance.Start ();
}
//打开闪光灯
public void FlashTourch(bool ON){
CameraDevice.Instance.SetFlashTorchMode (ON);
}