Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming Kit Won't Play Audio In Background on iOS 13 (Beta 6 / Latest Beta) #442

Open
SleepiestAdam opened this issue Aug 13, 2019 · 1 comment

Comments

@SleepiestAdam
Copy link

It appears that StreamingKit doesn't work when you attempt to launch audio from an app in the background on iOS 13 (tested with Beta 6 / the latest at the time of posting).

It returns an STKAudioPlayerErrorAudioSystemError when you attempt to play the audio. Whats more, if the app has attempted to launch some audio in the background, and is then brought to the foreground; the same error can be found when trying to attempt to play audio in the foreground (so possibly something that's failing on initialisation the first time the library gets used).

If you open the app, and try play something in the foreground only then it works fine / it's only an error if the app is launched in the background and attempts to play some audio (e.g. launched using SiriKit in our case).

This doesn't appear to be an issue on iOS 12. Addittionally on iOS 13; standard AudioPlayers do successfully launch in the background (so it's not a iOS 13 beta issue effecting all audio playing / it's definitely related to StreamingKit specific to iOS 13.)

@ericDMH
Copy link

ericDMH commented Sep 20, 2019

Seems to work fine for me. I can launch audios using the play control from the standby screen even when the app is in background and not playing audio. Maybe this was an error from the beta version ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants