i can play audio with this code.
let url = Bundle.main.url(forResource: "demo", withExtension: "mp3")
self.movie.setMovieURL(url!)
my problem is how can i play it with, i want a recorded file to play it.
let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)
i Mean save it to FileManagere. after record a audio. i can print url out it out, after i change "demo" and "mp3". out it crash my code.
/Users/frederikfrandsen/Library/Developer/CoreSimulator/Devices/7E453A8E-A9D4-4E34-BAD3-F32DF5D8E313/data/Containers/Data/PluginKitPlugin/25D8D0CE-3F7C-46DE-A4ED-74320443A1C6/Documents/
Here some Image. sorry about my language
All i want is play some music from a recorded file.