1 /// <summary> 2 /// 攝像頭轉換 3 /// </summary> 4 /// <param name="s_cameraDirection">攝像頭轉換方向</param> 5 public void ChangeCameraDirectionMet(CameraDevice.CameraDirection s_cameraDirection) 6 { 7 //中止當前攝像頭 8 CameraDevice.Instance.Stop(); 9 //中止當前初始化 10 CameraDevice.Instance.Deinit(); 11 12 //初始化新的攝像頭(攝像頭類型) 13 CameraDevice.Instance.Init(s_cameraDirection); 14 //打開新的攝像頭 15 CameraDevice.Instance.Start(); 16 17 } 18 19 20 /// <summary> 21 /// 是否打開閃光燈 22 /// </summary> 23 /// <param name="s_isOn">開關標誌位</param> 24 public void FlashTorchMet(bool s_isOn) 25 { 26 CameraDevice.Instance.SetFlashTorchMode(s_isOn); 27 }