Hi, I have a video .MOV file in external storage.
After I copy it from my external storage into my phone and using : PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: URL) that was successful save into Photo app and the thumbnail at this moment is the first frame of video.
After a short period of time, the thumbnail of video auto changes into the other frame.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi,
I share a video which gets from PHImageManager.default().requestAVAsset that I use UIActivityViewController for sharing.
The debug gives the error: "Operation not permitted" UserInfo={NSLocalizedDescription=Could not create sandbox extension of type com.apple.app-sandbox.read for URL /var/mobile/Media/DCIM/101APPLE/IMG_1416.MOV} which the iOS 14.0 not appear.
I don't know why happening. Any suggestion, how can I fix it?
Hi, I have a video file of about 4GB.
When I try to read the file by using the function Data(contentsOf: URL, options: Data.ReadingOptions). It will be leak memory and crash the app.
How can I control this issue?
Topic:
Programming Languages
SubTopic:
Swift
Tags:
Mobile Core Services
Files and Storage
Swift
Xcode