iOS lockscreen controls not working and won't play next track

610 views
Skip to first unread message

Patrick Breitenbach

unread,
Nov 12, 2014, 9:56:35 PM11/12/14
to jpl...@googlegroups.com
I'm creating a browser-based music player and was hoping that it would continue to play tunes even after user's iPhone locks. It appears to play the current track until the end but will not play the next track. Nor do the controls seems to work on the lock screen.

My guess is that it's a limitation of mobile Safari / iOS? Has anyone managed some sort of work-around short of piecing together all the audio into one file?

Mark Panaghiston

unread,
Nov 13, 2014, 7:59:43 AM11/13/14
to jpl...@googlegroups.com
This is a common problem that may also affect the other mobile devices too, ie Android.

The reasoning behind it is that the browser JavaScript engine is shutdown (after a minute or so) when the browser is minimised. You hardly want some webpage animating some advert all day long in the background of your phone that you did not even know was there in the 1st place and then you complaining that the phone died after 2 hours in your pocket when you were not even using it.

Agreed that the case for audio is different. You can't see it, but you can hear it while you go about your business.

Reviewing on an iPhone6 iOS8 now... And I see that the audio title still does not work in the locked screen / play-center. You get the huge url instead... They broke that after briefly making it work in iOS6 I believe. But since you can now play 6 pieces of audio together, which one would you display in the play-center title area?!? I suggested to Apple that they use the last one told to play. But, i'm off topic.

The next and previous buttons now do nothing too. They used to jump to the beginning or the end of the piece of music. The play/pause button work in the play-center.

Yep, when the song ends it stops.. And then you unlock the phone and the browser continues - since I locked the screen with the browser open.

The only solutions continue to remain either putting all the music into 1 epic file, or to use a streaming server.

Mark Panaghiston

unread,
Nov 14, 2014, 5:56:06 AM11/14/14
to jpl...@googlegroups.com
An update on what I wrote yesterday:

Reviewing on an iPhone6 iOS8 now... And I see that the audio title still does not work in the locked screen / play-center. You get the huge url instead... They broke that after briefly making it work in iOS6 I believe. But since you can now play 6 pieces of audio together, which one would you display in the play-center title area?!? I suggested to Apple that they use the last one told to play. But, i'm off topic.

I was wrong about the control-center not displaying the audio title. The error was in the jPlayer code that set the title attribute, which did nothing if the GUI did not have a jp-title element to display the title. The only skin that does not have a jp-title element was the audio playlist skin type, which was the demo I'd been using to test the next/previous buttons. This bug was fixed in jPlayer 2.8.1 yesterday.

The control center's next/previous buttons issue has been bug reported to Apple. I marked my previous bug report on the control center's media title, from March 2014, as resolved.

Вадим Заковряшин

unread,
Sep 27, 2016, 1:29:57 PM9/27/16
to jPlayer: HTML5 Audio & Video for jQuery

The only solutions continue to remain either putting all the music into 1 epic file, or to use a streaming server.


Hello! Explain, please, what do you mean about  "use a streaming server"?
Reply all
Reply to author
Forward
0 new messages