接上一个重新提交

This commit is contained in:
bluesea 2024-03-15 16:25:57 +08:00
parent a6aefd1a81
commit c7d75c73e2

View File

@ -16,7 +16,7 @@ import CoreGraphics
import MobileCoreServices import MobileCoreServices
import AVKit import AVKit
import CoreMedia
private let Back_Height:CGFloat = KHZSize(700) private let Back_Height:CGFloat = KHZSize(700)
@ -256,16 +256,9 @@ class CCSpaceAlbumFliterPopView: UIView {
} }
} }
// //MARK:
func isSpatialVideo(asset: AVAsset) -> Bool { func isSpatialVideo(asset: AVAsset) -> Bool {
let metadata = asset.metadata(forFormat: AVMetadataFormat.quickTimeMetadata) return ZZHHelper.isSpatialVideo(asset: asset)
let isSpatialVideo = metadata.contains { item in
if let identifier = item.identifier?.rawValue {
return identifier == "mdta/com.apple.quicktime.spatial.format-version"
}
return false
}
return isSpatialVideo
} }
func isSSVideo(asset:AVAsset)async throws->Bool{ func isSSVideo(asset:AVAsset)async throws->Bool{