StreamingKit icon indicating copy to clipboard operation
StreamingKit copied to clipboard

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

Open SleepiestAdam opened this issue 6 years ago • 1 comments

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

SleepiestAdam avatar Aug 13 '19 20:08 SleepiestAdam

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 ?

ericDMH avatar Sep 20 '19 14:09 ericDMH