skip to Main Content

Getting URL from firebase storage and setting it to an AVAudioPlayer always throws error (swift xcode)

I'm trying to download a URL from Firebase storage and save it to an AVAudioPlayer func loadAudio(post: CompPost, completion: @escaping (AVAudioPlayer) -> ()) { let audioRef = Storage.storage().reference().child("cPosts").child(post.uid).child("Audio").child(post.mp3) audioRef.downloadURL { (url, error) in print("mp3filename: " + post.mp3) guard error ==…

VIEW QUESTION
Back To Top
Search