I am trying to get a video from a user's library, and for the application to be able to play them back that video whenever they want. Currently I am saving it as a bookmark but this gets wiped on device restart. Currently using
didSelect(url: URL?)
from the videoPickerDelegate to receive the url/video from the user if that makes a difference. Is there a more preferred way to make a copy so the video does not get lost on restart?
Another avenue I am trying is writing the bookmark to a file in documentDirectory/movieDirectory to try to load later, and currently just working through the wrinkles of that. I am not uploading any of the users data/videos to any servers so must all be local
I've also seen some information on security scoped bookmarks but was unsure if that's the correct avenue.
Thanks for any guidance!