From c7e570f153a027ce9c49b1cd40e1b598b686cc75 Mon Sep 17 00:00:00 2001 From: bluesea <307723040@qq.com> Date: Wed, 27 Mar 2024 15:35:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=86=E9=A2=91=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E9=A1=B5=E9=9D=A2=E9=A6=96=E9=80=89=E9=A1=B9=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=B9=B3=E8=A1=8C=E7=9C=BC=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CCSpatialVideoDisplayController.swift | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/SwiftProject/SwiftProject/Project/Controller/RecordingVideo/CCSpatialVideoDisplayController.swift b/SwiftProject/SwiftProject/Project/Controller/RecordingVideo/CCSpatialVideoDisplayController.swift index b902221..d3009a7 100644 --- a/SwiftProject/SwiftProject/Project/Controller/RecordingVideo/CCSpatialVideoDisplayController.swift +++ b/SwiftProject/SwiftProject/Project/Controller/RecordingVideo/CCSpatialVideoDisplayController.swift @@ -42,9 +42,10 @@ class CCSpatialVideoDisplayController: BaseController, AVPlayerViewControllerDel ] } else{ - self.selectedIndex = .monocular2D//在非串流模式下,默认选项为monocular2D - self.typeData = [(icon:"type_check",title:"单眼2D",isHiden:false), - (icon:"type_check",title:"平行眼",isHiden:false), + self.selectedIndex = .parallelEyes//在非串流模式下,默认选项为monocular2D + self.typeData = [(icon:"type_check",title:"平行眼",isHiden:false), + (icon:"type_check",title:"单眼2D",isHiden:false), + (icon:"type_check",title:"红蓝立体",isHiden:false), (icon:"type_check",title:"交叉眼",isHiden:false)] } @@ -65,7 +66,7 @@ class CCSpatialVideoDisplayController: BaseController, AVPlayerViewControllerDel var link = false//是否已连接设备 var isPlaying = false//是否正在播放 - var selectedIndex:SpatialType = .monocular2D//记录当前选择的菜单选项 + var selectedIndex:SpatialType = .parallelEyes//记录当前选择的菜单选项 { didSet{ //进行相应解码操作,边解边播 @@ -138,7 +139,7 @@ class CCSpatialVideoDisplayController: BaseController, AVPlayerViewControllerDel button.layer.cornerRadius = 18 button.layer.borderWidth = 1 button.layer.borderColor = UIColor.white.cgColor - button.setTitle("单眼2D", for: UIControl.State.normal) + button.setTitle("平行眼", for: UIControl.State.normal) button.setImage(UIImage.init(named: "type_button_arrow_down"), for: .normal) button.updateBtnEdgeInsets(style: .Right, space: 10) button.setTitleColor(UIColor.white, for: UIControl.State.normal) @@ -148,8 +149,9 @@ class CCSpatialVideoDisplayController: BaseController, AVPlayerViewControllerDel - var typeData:[(icon:String,title:String,isHiden:Bool)] = [(icon:"type_check",title:"单眼2D",isHiden:false), - (icon:"type_check",title:"平行眼",isHiden:false), + var typeData:[(icon:String,title:String,isHiden:Bool)] = [(icon:"type_check",title:"平行眼",isHiden:false), + (icon:"type_check",title:"单眼2D",isHiden:false), + (icon:"type_check",title:"红蓝立体",isHiden:false), (icon:"type_check",title:"交叉眼",isHiden:false)] {