注释掉一些打印信息
This commit is contained in:
parent
5977edf8d1
commit
7324da72eb
@ -15,7 +15,7 @@ extension CCSpatialVideoDisplayController {
|
||||
func getPlayerItem() -> AVPlayerItem {
|
||||
let temItem = AVPlayerItem(asset: self.videoOriginalAsset)
|
||||
AVVideoComposition.videoComposition(with: temItem.asset) { [weak self] request in
|
||||
print("正在请求解码图片frame....")
|
||||
// print("正在请求解码图片frame....")
|
||||
guard let weakSelf = self else {
|
||||
print("self 被销毁了.....")
|
||||
return
|
||||
@ -52,11 +52,11 @@ extension CCSpatialVideoDisplayController {
|
||||
break
|
||||
}
|
||||
if let ciImg {
|
||||
print("已返回图片frame....")
|
||||
// print("已返回图片frame....")
|
||||
request.finish(with: ciImg, context: nil)
|
||||
}
|
||||
else {
|
||||
print("没有合成可用视频帧图片....准备用request.sourceImage替换")
|
||||
// print("没有合成可用视频帧图片....准备用request.sourceImage替换")
|
||||
request.finish(with: request.sourceImage, context: nil)
|
||||
}
|
||||
}
|
||||
@ -71,14 +71,14 @@ extension CCSpatialVideoDisplayController {
|
||||
// print("正在遍历。。。。1")
|
||||
}
|
||||
guard self.assetReader?.status == .reading else {
|
||||
print("assetReader status:\(self.assetReader?.status) err:\(self.assetReader?.error)")
|
||||
// print("assetReader status:\(self.assetReader?.status) err:\(self.assetReader?.error)")
|
||||
return nil
|
||||
}
|
||||
ao.reset(forReadingTimeRanges:[NSValue(timeRange: tr)])
|
||||
// }
|
||||
|
||||
|
||||
print("mode:......\(mode)")
|
||||
// print("mode:......\(mode)")
|
||||
var ciImg:CIImage? = nil
|
||||
switch mode {
|
||||
case .crossedEyes://交叉眼
|
||||
@ -115,13 +115,13 @@ extension CCSpatialVideoDisplayController {
|
||||
do {
|
||||
if self.assetTrack == nil {
|
||||
assetTrack = try await self.videoOriginalAsset.loadTracks(withMediaType: .video).first!
|
||||
print("等待loading tracks。。。。。")
|
||||
// print("等待loading tracks。。。。。")
|
||||
}
|
||||
// let timeRange = CMTimeRange(start: .zero, duration: .positiveInfinity)
|
||||
print("加载完毕loading tracks。。。。。")
|
||||
// print("加载完毕loading tracks。。。。。")
|
||||
let timeRange = CMTimeRange(start: .zero, duration: CMTime(value: 1, timescale: 1))
|
||||
DispatchQueue.main.async {
|
||||
print("进入主线程loading tracks。。。。。")
|
||||
// print("进入主线程loading tracks。。。。。")
|
||||
self.quickLoadAReader(timeRange: timeRange)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user