StreamingKit
StreamingKit copied to clipboard
Can't play music in iPhone locked state
Hello
I can't play music when iPhone is locked. After locked and the display of iPhone turn off, then I can't hear music. When I click home button and iPhone needs to unlock, I resume again. Hope your kind help.
Regards.
I have same issues when STKAudioPlayer play file offline in device. It's stop audio when lock screen over 10s... (STKAudioPlayer state auto change to STKAudioPlayerStateBuffering and stop). But with audio streaming. It's OK. I don't understand. :) How to fix it?
Have you enabled background audio in your app?
A quick Google will show you how to alter the target details or http://www.raywenderlich.com/29948/backgrounding-for-ios
Yes, I have enabled background audio in my app. When I streaming audio from internet, lock screen playback is OK. This bug only happens when play audio file offline on device. :)
Even when streaming audio from internet, lock screen playback fails. Background audio is also enabled in my app.
What iOS version are you using?
iOS 8.3.1
FYI: also reproduced on iOS 8.1.4, 9.0 beta 2
look at wiki
so easy.
@qinghou if wiki page helps, please close the issue.