修改视频预览页面首选项改为平行眼模式

This commit is contained in:
bluesea 2024-03-27 15:35:30 +08:00
parent 4a5bb77263
commit c7e570f153

View File

@ -42,9 +42,10 @@ class CCSpatialVideoDisplayController: BaseController, AVPlayerViewControllerDel
] ]
} }
else{ else{
self.selectedIndex = .monocular2D//monocular2D self.selectedIndex = .parallelEyes//monocular2D
self.typeData = [(icon:"type_check",title:"单眼2D",isHiden:false), self.typeData = [(icon:"type_check",title:"平行眼",isHiden:false),
(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),
(icon:"type_check",title:"交叉眼",isHiden:false)] (icon:"type_check",title:"交叉眼",isHiden:false)]
} }
@ -65,7 +66,7 @@ class CCSpatialVideoDisplayController: BaseController, AVPlayerViewControllerDel
var link = false// var link = false//
var isPlaying = false// var isPlaying = false//
var selectedIndex:SpatialType = .monocular2D// var selectedIndex:SpatialType = .parallelEyes//
{ {
didSet{ didSet{
// //
@ -138,7 +139,7 @@ class CCSpatialVideoDisplayController: BaseController, AVPlayerViewControllerDel
button.layer.cornerRadius = 18 button.layer.cornerRadius = 18
button.layer.borderWidth = 1 button.layer.borderWidth = 1
button.layer.borderColor = UIColor.white.cgColor 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.setImage(UIImage.init(named: "type_button_arrow_down"), for: .normal)
button.updateBtnEdgeInsets(style: .Right, space: 10) button.updateBtnEdgeInsets(style: .Right, space: 10)
button.setTitleColor(UIColor.white, for: UIControl.State.normal) 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), var typeData:[(icon:String,title:String,isHiden:Bool)] = [(icon:"type_check",title:"平行眼",isHiden:false),
(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),
(icon:"type_check",title:"交叉眼",isHiden:false)] (icon:"type_check",title:"交叉眼",isHiden:false)]
{ {