HTML5 notifications on Spotify Web Player

Adds silent song notifications with title, artist and cover art

< Σχολιασμός για τον κώδικα HTML5 notifications on Spotify Web Player

Αναφορά: Καλός - ο κώδικας λειτουργεί

§
Δημοσιεύτηκε: 08/06/2016
Επεξεργάστηκε: 08/06/2016

Cover from the previous title

In the notification the cover of the previous played title is shown, not the current one.

Might it be, because I start Spotify via https://play.spotify.com/?http=1? (Firewall-/Proxy-step over)

- EDIT -
It seems to be a temporary issue. The last songs I play are shown with the right covers in the notifications now ...

SwyterΔημιουργός
§
Δημοσιεύτηκε: 08/06/2016
Επεξεργάστηκε: 09/06/2016

It has to do with how the browser prioritizes changes only when a tab is visible. Things like downloading images and script triggers are postponed for a bit if they aren't deemed urgent. I will add an additional delay to account for this.

That should solve it. Using a separate window may also help.

§
Δημοσιεύτηκε: 09/06/2016

After the last update I had no wrong covers anymore. Thank you!

SwyterΔημιουργός
§
Δημοσιεύτηκε: 09/06/2016

I appreciate this kind of useful feedback. Have fun!

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.