Post marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
Post marked as solved with 1 replies, 0 views
Replied In
Trying to open an mp3 file in app documents
Fixed it! The library had a problem with the file URL, but by just using the method .standardizedFileURL on the URL I got in the documents directory, the library accepted it and worked perfectly.
So basically,
changing this:
stream = createStream(gerudoValleyURL.path)
to this:
stream = createStream(gerudoValleyURL.standardizedFileURL.path)
Fixed everything.
So note to self, use standardized URLs when working with external libraries. Seems pretty obvious but hey I'm learning.