Closed mruvim closed 6 years ago
Hey mruvim: why change path of uotput.mp4 to /tmp instead of /Documents
I see the rule
Data that is used only temporarily should be stored in the
@hoangtam101 Documents directory is automatically backed up to iCloud on devices which have iCloud enabled. Output video can always be regenerated from original file therefore there is no need to store it in docs directory. Storing in /tmp directory will allow system to clean up files in case system needs more memory. We need to make sure we're using users memory responsibly.
@mruvim Thank you. i got it.
@mruvim Hi Mruvim: I just compare my code and your code was submitted. But this code not work on iPhone 7. Are you check it on iPhone 7 with XCode 8 ? Thank you.
@hoangtam101 you are right, for some reason when compiled in Xcode 8 on iOS 10 sim video doesn't work, but it does work on actual device. When i'll have time i'll investigate what's going on with iOS 10 sim
@mruvim Thank you for your reply. I'm just run on device ios 10. this code work well on device. Thank you
Converted to swift 3. Changed output path of output.mp4 to /tmp instead of /Documents, for reasons please check iOS Data Storage Guidelines