Add queuing system that supports gapless playback
I know we've discussed this, but even a simple single entry queue (next up) would be an acceptable solution, could even just be the same api call.
SAPlayer.shared.startRemoteAudio(withRemoteUrl: remoteUrl, beginMode: .immedatiely)
beginMode is an enum with immediately, next
It's then up to the user application to implement the queue and queue logic.
The existing startRemoteAudio just becomes a wrapper around the new api call.
SAPlayer.shared.startRemoteAudio(withRemoteUrl: remoteUrl { self.startRemoteAudio(withRemoteUrl: remoteUrl, beginMode: .immediately) }
Hi @fizzyade - I've raised a PR which takes a pop at this. Would you mind taking a look and seeing if it fits your needs?
cc. @tanhakabir. another pr 😅
@jw1540 all good! you're killing it! 🥳
@jw1540 made a PR #72 but need to cherry pick out because the PR had many changes in one