接上一个重新提交
This commit is contained in:
parent
a6aefd1a81
commit
c7d75c73e2
@ -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{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user