dimitris-c / AudioStreaming

An AudioPlayer/Streaming library for iOS written in Swift using AVAudioEngine.
MIT License
266 stars 56 forks source link

Queued playlist only play few items then stoped. hardly play to end. #11

Closed newbdez33 closed 3 years ago

newbdez33 commented 3 years ago

It is almost 100% reproduced if there are many queued mp3 urls in queue. I created a repo for this issue.

https://github.com/newbdez33/AudioStreamingBug

The basic code is queue all playlist items to player.queue()

for item in playlist {
            if let url = URL(string: item) {
                print("queue:\(url)")
                player.queue(url: url)
            }
}

Sometimes it plays 2 or 3 items then stoped. Tested main branch in iOS 14.2 Simulator and iPhone 7. (Xcode 12.2 and Xcode 12.3)

dimitris-c commented 3 years ago

Yeap this is happening indeed, I realized it last week and started working on a fix...

dimitris-c commented 3 years ago

Fixed in #13.