zachomedia / apple-music-webplayer

Web player for Apple Music (using MusicKit JS)
https://music.zacharyseguin.ca
MIT License
596 stars 75 forks source link

Music stops after a while in background #96

Open yp261 opened 5 years ago

yp261 commented 5 years ago

Don't know how can I help you with finding the issue but what is happening:

I listen to some music, browser doesn't matter (Edge, Chrome and Firefox tested, Windows 10). After one or two songs the music just stops and I need to select some song manually for it to start playing.

There is no error, nothing - playback is at 100% and it's just stuck.

zachomedia commented 5 years ago

Thanks for the report @yp261

I've seen this happen from time to time as the underlying MusicKit.JS library updates and the odd issues is introduced. I've been playing music for an hour or so today (Chrome on macOS Mojave) and doesn't seem to have stopped yet.

When it occurs, can you check the developer console for any errors? I will also double check all the error paths and make sure the errors get logged out.

yp261 commented 5 years ago

Hi, thanks for reply

that's all I have in console: https://i.imgur.com/4gRBx1e.png

zachomedia commented 5 years ago

@yp261 Looks like you're using the web scrobbler extension? Does it happen with the extension disabled?

yp261 commented 5 years ago

Hi, no issues without the extension. That's pretty bad because I can't live without my music being scrobbled to last.fm :D

Djabx commented 5 years ago

Hi, I've the same issue, and for me it append mostly on long songs, between 13 to 16 minutes

The message in the console is:

InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable

BTW: I'm using Firefox 68.0.2 64bits on Ubuntu 19.04

Some ong I've experienced this lately:

zachomedia commented 5 years ago

@Djabx Thanks for the information, I'll take a look and attempt to reproduce. I will note that playback issues like that seem to come and go every so often, so it may randomly start working again.

I do still have a couple of open issue with Apple regarding various playback issues, so if I discover anything new I'll add it to those issues.

feastofnoise commented 4 years ago

Started using the ZS player today and I mostly listen to music that has long songs so I can confirm that the music will always stop after 11 - 14 minutes of playing time. I really like the player otherwise!

mtnowl commented 4 years ago

Same here, it stops typically right at 15 minutes. Makes listening to classical music difficult. The error is as follows:

InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable
AlexanderChiclana commented 3 years ago

This is still an issue, stops for me at 15 minutes as well

zachomedia commented 3 years ago

I'll double check my issues I have with Apple to see the status of this, but I believe this continues to be an issue with MusicKit JS.