注释无用代码

This commit is contained in:
bluesea 2024-04-09 14:52:33 +08:00
parent 96c31c382c
commit d89924d5a2
3 changed files with 33 additions and 115 deletions

View File

@ -611,75 +611,12 @@
filePath = "SwiftProject/Project/Controller/RecordingVideo/CCSpatialVideoDisplayController/CCSpatialVideoDisplayController.swift" filePath = "SwiftProject/Project/Controller/RecordingVideo/CCSpatialVideoDisplayController/CCSpatialVideoDisplayController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "367" startingLineNumber = "371"
endingLineNumber = "367" endingLineNumber = "371"
landmarkName = "viewDidAppear(_:)" landmarkName = "viewDidAppear(_:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "EF28D223-534C-4D5B-8564-50D9720BA766"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "SwiftProject/Project/Controller/RecordingVideo/CCSpatialVideoDisplayController/CCSpatialVideoDisplayController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "654"
endingLineNumber = "654"
landmarkName = "selectedSpatialType(selectedIndex:)"
landmarkType = "7">
<Locations>
<Location
uuid = "EF28D223-534C-4D5B-8564-50D9720BA766 - 6adcab4b430491b5"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "SwiftProject.CCSpatialVideoDisplayController.selectedSpatialType(selectedIndex: Swift.Int) -&gt; ()"
moduleName = "SwiftProject"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/aaa/Documents/IOS%20Dev/VR/SwiftProject/SwiftProject/Project/Controller/RecordingVideo/CCSpatialVideoDisplayController/CCSpatialVideoDisplayController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "632"
endingLineNumber = "632"
offsetFromSymbolStart = "56">
</Location>
<Location
uuid = "EF28D223-534C-4D5B-8564-50D9720BA766 - 6adcab4b430491b5"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "SwiftProject.CCSpatialVideoDisplayController.selectedSpatialType(selectedIndex: Swift.Int) -&gt; ()"
moduleName = "SwiftProject"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/aaa/Documents/IOS%20Dev/VR/SwiftProject/SwiftProject/Project/Controller/RecordingVideo/CCSpatialVideoDisplayController/CCSpatialVideoDisplayController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "632"
endingLineNumber = "632"
offsetFromSymbolStart = "52">
</Location>
<Location
uuid = "EF28D223-534C-4D5B-8564-50D9720BA766 - 6adcab4b4304945b"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "SwiftProject.CCSpatialVideoDisplayController.selectedSpatialType(selectedIndex: Swift.Int) -&gt; ()"
moduleName = "SwiftProject"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/aaa/Documents/IOS%20Dev/VR/SwiftProject/SwiftProject/Project/Controller/RecordingVideo/CCSpatialVideoDisplayController/CCSpatialVideoDisplayController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "654"
endingLineNumber = "654"
offsetFromSymbolStart = "52">
</Location>
</Locations>
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy <BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
@ -690,59 +627,11 @@
filePath = "SwiftProject/Project/Controller/RecordingVideo/CCSpatialVideoDisplayController/CCSpatialVideoDisplayController.swift" filePath = "SwiftProject/Project/Controller/RecordingVideo/CCSpatialVideoDisplayController/CCSpatialVideoDisplayController.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "531" startingLineNumber = "535"
endingLineNumber = "531" endingLineNumber = "535"
landmarkName = "displayUpdate(caDisplayLink:)" landmarkName = "displayUpdate(caDisplayLink:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "8F610068-6D99-4BE0-9B62-0CCC054BA078"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "SwiftProject/Project/Controller/RecordingVideo/CCSpatialVideoDisplayController/CCSpatialVideoDisplayController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "457"
endingLineNumber = "457"
landmarkName = "dealTaskWhenExternalScreenConnect()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "311C202A-06E3-4B12-8A88-0704B802EA9C"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "SwiftProject/Project/Controller/RecordingVideo/CCSpatialVideoDisplayController/CCSpatialVideoDisplayController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "453"
endingLineNumber = "453"
landmarkName = "dealTaskWhenExternalScreenConnect()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "B63A78BF-7A76-4AE2-BE27-20FAE31206D0"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "SwiftProject/Project/Controller/RecordingVideo/CCSpatialVideoDisplayController/CCSpatialVideoDisplayController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "444"
endingLineNumber = "444"
landmarkName = "dealTaskWhenExternalScreenConnect()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints> </Breakpoints>
</Bucket> </Bucket>

View File

@ -232,6 +232,31 @@ class CCSpatialVideoDisplayController: BaseController {
print("PlayerEndTime....") print("PlayerEndTime....")
player?.seek(to: .zero) player?.seek(to: .zero)
player?.play() player?.play()
// self.playerController?.view.layer.sublayers?.forEach({ clayer in
// print("clayer.......\(clayer.self)")
// clayer.backgroundColor = UIColor.red.cgColor
// clayer.sublayers?.forEach({ sclayer in
// print("sclayer.......\(sclayer.self)")
// sclayer.backgroundColor = UIColor.blue.cgColor
// sclayer.sublayers?.forEach({ sscalyer in
// print("sscalyer.......\(sscalyer.self)")
// if let avPlayerLayer = sscalyer as? AVPlayerLayer {
// sscalyer.backgroundColor = UIColor.orange.cgColor
// sscalyer.sublayers?.forEach({ avSubLayer in
// print("avSubLayer.......\(avSubLayer.self)")
// avSubLayer.backgroundColor = UIColor.systemPink.cgColor
// if let avaPlayerLayer2 = avSubLayer as? AVPlayerLayer {
// avaPlayerLayer2.backgroundColor = UIColor.white.cgColor
//
// }
// })
// }
//
// })
// })
// })
} }
// //
@ -254,6 +279,8 @@ class CCSpatialVideoDisplayController: BaseController {
self?.setUPPlayer() self?.setUPPlayer()
// AirPlay // AirPlay
self?.checkAirPlayStatus() self?.checkAirPlayStatus()
} }
} }
} }
@ -270,6 +297,8 @@ class CCSpatialVideoDisplayController: BaseController {
playerController?.player = player playerController?.player = player
playerController!.view.backgroundColor = .clear playerController!.view.backgroundColor = .clear
playerController?.view.frame = CGRect.init(x: 0, y: 170, width: self.view.frame.size.width, height: 400) playerController?.view.frame = CGRect.init(x: 0, y: 170, width: self.view.frame.size.width, height: 400)
self.addChild(playerController!) self.addChild(playerController!)
self.view.addSubview(playerController!.view) self.view.addSubview(playerController!.view)