How to make PHLivePhoto from Mov File?

前端 未结 1 1210
星月不相逢
星月不相逢 2021-01-16 09:08

I have a one .MOV file and one .JPG file. When I\'m trying to make a Live Photo:

func makeLivePhotoFromItems(imageURL: NSURL, videoURL: NSURL, previewImage:          


        
相关标签:
1条回答
  • 2021-01-16 09:49

    the image and mov file must have the same identifier(NSString *assetIdentifier = [[NSUUID UUID] UUIDString]),and the key of mov in metadata must be @"com.apple.quicktime.content.identifier"

    0 讨论(0)
提交回复
热议问题