标签:mode direction star ice unit ash public code instance
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 }
标签:mode direction star ice unit ash public code instance
原文地址:https://www.cnblogs.com/mrmocha/p/9738948.html