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)] {