Page 1 of 1

Subsonic 6.0 lag between songs

PostPosted: Wed May 11, 2016 4:03 pm
by mfrt
I've noticed since upgrading to Subsonic 6.0 that there is often quite a bit of lag before songs start to play when playing remotely in a browser. I did not notice with previous versions. I am accessing my server remotely. It has a 5Mb/s upload speed, which isn't that fast, but was more that adequate before. It feels to me like the new HTML5 player is downloading the entire song before it starts to play rather than starting to play after a few seconds have buffered.

Has anyone else had this issue?

Re: Subsonic 6.0 lag between songs

PostPosted: Wed May 11, 2016 4:55 pm
by acroyear
I've been using the HTML5 audio tag for SubFire for some time and how much it buffers before it sends the "canplay" event varies from browser to browser (and platform to platform). It certainly doesn't buffer the whole song, but it is really out of the hands of the developer for how much it should buffer: it just does what it does and there's nothing one can do to override.

That said, I'm not sure if the library 6.0 is using for audio playback is actually waiting for the canplay event to fire or if it is just polling via a timeout. If the latter, it should change to the former: all the desktop browsers (and IOS Safari) support canplay correctly.

I read on the 6.0 announcement thread that he's looking at potential alternative libraries that might work more efficiently through HTML5 Web Audio rather than the <audio> tag, which may help this situation.