app icon indicating copy to clipboard operation
app copied to clipboard

Skipping through songs

Open LucyBrook opened this issue 3 years ago • 9 comments

When playing on Microsoft edge songs skip through by a few minutes when playing. If you stop the current song and skip to the new one it doesn’t skip but the problem persists if you allow it to run.

LucyBrook avatar Nov 21 '22 19:11 LucyBrook

@LucyBrook I'll try to reproduce this on my side soon. Does this bug also occur in other browsers or is it limited to Edge?

leolabs avatar Nov 21 '22 20:11 leolabs

I have tried it in chrome and it also happens but less often

LucyBrook avatar Dec 05 '22 21:12 LucyBrook

Could this be linked to #289 somehow? I was using Festify during a NYE party and people loved the concept. However, we experienced the bug described in this issue as well as the one in #289 quite often.

This resulted in songs either a) being skipped right when it should start playing or b) skipping into the middle (or even to the last 10 seconds) of a song which kind of defeated the idea of the app. Not sure if that is on the side of Festify or the Spotify API. However, we only used Chrome - so I cannot say if it would have been worse with Edge.

TheDom42 avatar Jan 02 '23 12:01 TheDom42

This is very strange. I know we had this issue as well at some points but it's hard to debug what exactly is causing this since it doesn't happen consistently.

leolabs avatar Jan 02 '23 14:01 leolabs

Yes! That's true: very inconsistent - e.g. after a few hours it got noticeably better only to return an hour later.

If haven't checked the code in detail but your main "database" is relying on firebase, right? Could this be related to maybe a "sync" or race condition situation between firebase, your app and Spotify API? E.g. Spotify thinking that a song is already playing etc.? I really don't know much about your code but to me it seemed like some of the databases were just out of sync with each other.

EDIT: Btw - I love this:

* DISCLAIMER: The following is not mathematically proven, but we think
* it should work.

TheDom42 avatar Jan 02 '23 14:01 TheDom42

i started using this in the office so everyone in the office can add their own songs, but we are experiencing the same issue. it mostly starts after an hour of playing. and indeed sometimes the whole song will be skipped, sometimes it will skip to the end or it will start playing in the middle of the song but correct it self after +/- 3sec and will go back to the start of the song.

is there any update on this issue so far?

TowlieeNetworks avatar Feb 27 '23 14:02 TowlieeNetworks

I'm experiencing the same right now sadly. Tested different browsers, persists. Removed all songs, paused, skipped etc, nothing changes...

XLixl4snSU avatar Mar 17 '23 20:03 XLixl4snSU

Yeah, I've had this issue fairly consistently over the last couple of years. Tried from many machines, desktop/laptop/android phones and it happens on all of them.

Seems to get worse after some time playing and I have never found a fix for it.

I have tested excluding the site from the tab sleep in Edge, but no change.

danstis avatar Jun 29 '23 05:06 danstis

I was able to reproduce this and capture the console output, in case it helps nail this one down.

For this set of logs, the current playing track finished as it should do, then the next song skipped to almost the end, for about half a second, then it started from the beginning.

By the looks, the machine got a 502 response from the Spotify API, then retried (which is when the song restarted from the beginning.)

Here is the console log: https://pastebin.com/n73Kb5cG

danstis avatar Jun 29 '23 06:06 danstis