howler.js icon indicating copy to clipboard operation
howler.js copied to clipboard

Next song never starts playing when iPhone "falls to sleep" and locks the screen.

Open olegos24 opened this issue 6 years ago • 6 comments

Hello guys.

Currently we run JPlayer on the background of our music site. It used to work fine until Apple iOS update back last Spring, where song stops playing and the next one never starts if iPhone's screen sleeps and locks itself.

I was looking at some players that support .mp3 playback on iPhones and came across your app. Tried to test it out using your demo player (purple one with 3 songs in it), but seeing the same problem:

1st song plays fine -> iPhone's screen goes to sleep (and locks itself) -> song finish playing to the end, but 2nd song never starts, unless user manually "wakes" the phone up and presses Play again.

Is this expected with your player as well?

I am looking for a solution that allows songs to play non-stop (even on the background like on Androids, until user taps "Stop" or closes Safari).

Could you please advise something here... Thank You.

olegos24 avatar Dec 10 '18 19:12 olegos24

Hmm, in my tests it didn't even played the next track when unlocked. It just stayed at the loading animation. I'm looking for similar use case of emulating a radio with several audio files.

luckydonald avatar Dec 30 '18 20:12 luckydonald

Hi @olegos24 did you find a fix finally?

ImaCrea avatar Oct 06 '19 18:10 ImaCrea

Yes. Installed an old JPlayer version and it started to work.

olegos24 avatar Oct 06 '19 21:10 olegos24

Which versions of JPlayee were working/not working?

In case I later need to take a look?

luckydonald avatar Oct 07 '19 00:10 luckydonald

I had 2.9.2, downgraded to 2.4.0

olegos24 avatar Oct 07 '19 00:10 olegos24

I had 2.9.2, downgraded to 2.4.0

Is it working today? Can you write an example code?

SY-art avatar Apr 03 '22 20:04 SY-art