SwiftAudioPlayer icon indicating copy to clipboard operation
SwiftAudioPlayer copied to clipboard

Add queuing system that supports gapless playback

Open tanhakabir opened this issue 6 years ago • 4 comments

tanhakabir avatar Dec 18 '19 08:12 tanhakabir

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) }

fizzyade avatar Dec 23 '19 23:12 fizzyade

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 avatar Mar 10 '21 00:03 jw1540

@jw1540 all good! you're killing it! 🥳

tanhakabir avatar Mar 10 '21 00:03 tanhakabir

@jw1540 made a PR #72 but need to cherry pick out because the PR had many changes in one

tanhakabir avatar Mar 10 '21 22:03 tanhakabir