SwiftAudioPlayer icon indicating copy to clipboard operation
SwiftAudioPlayer copied to clipboard

App Crashes when integrated with SwiftUI

Open pushkraj-lanjekar opened this issue 1 year ago • 1 comments

I have used Swift package manager to integrate SwiftAudioPlayer in my app and when I run it using

let url = URL(string: "https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3")!
SAPlayer.shared.startRemoteAudio(withRemoteUrl: url)
SAPlayer.shared.play()

It crashes the app after 2-3 seconds for below reasons. Screenshot 2024-02-03 at 11 32 02 PM

Any idea how to fix this up or am I missing any step?

pushkraj-lanjekar avatar Feb 03 '24 18:02 pushkraj-lanjekar

Hey @pushkraj-lanjekar ! Did you find a solution to this?

ishaanbedi avatar May 24 '24 10:05 ishaanbedi