StreamingKit icon indicating copy to clipboard operation
StreamingKit copied to clipboard

Can't play music in iPhone locked state

Open qinghou opened this issue 9 years ago • 10 comments

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.

qinghou avatar Apr 13 '15 03:04 qinghou

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?

duongvanthai avatar Apr 24 '15 07:04 duongvanthai

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

hutchy avatar Apr 24 '15 07:04 hutchy

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

duongvanthai avatar Apr 24 '15 08:04 duongvanthai

Even when streaming audio from internet, lock screen playback fails. Background audio is also enabled in my app.

WillHu avatar Jun 25 '15 13:06 WillHu

What iOS version are you using?

blnked avatar Jul 04 '15 18:07 blnked

iOS 8.3.1

WillHu avatar Jul 05 '15 01:07 WillHu

FYI: also reproduced on iOS 8.1.4, 9.0 beta 2

blnked avatar Jul 07 '15 12:07 blnked

look at wiki

Heisenbean avatar Apr 08 '16 06:04 Heisenbean

so easy.

foox07 avatar Feb 24 '17 05:02 foox07

@qinghou if wiki page helps, please close the issue.

derpoliuk avatar Mar 29 '17 13:03 derpoliuk