PDA

View Full Version : Browser Refresh Timing



Philip Meyer
2004-11-27, 09:38
I just noticed that my slimserver web interface hadn't refreshed for a while. It was showing "Now playing 6 of 90", and track 6 in the playlist was highlighted, but actually track 54 was playing.

I'm using the Fishbone skin, and "Browser Refresh Timing" is set to 30. WinXP Pro SP2. SlimServer 5.4.0, a recent nightly (downloaded a couple of days ago, I think).

I just did a forced refresh, and the page has refreshed properly since then. I had the window minimised to the tasktray, does it not refresh if it is iconised down?

Also, I've always wondered what the green bar above the now playing frame represents. Does this show the time until the next page refresh?

Phil

kdf
2004-11-27, 10:23
Quoting Philip Meyer <slim (AT) hergest (DOT) demon.co.uk>:


> I just did a forced refresh, and the page has refreshed properly since then.
> I had the window minimised to the tasktray, does it not refresh if it is
> iconised down?

it should still refresh. it should only stop refreshing if it didn't get a
response at some point. for instance, if you restart the server.
>
> Also, I've always wondered what the green bar above the now playing frame
> represents. Does this show the time until the next page refresh?

its an approximate guess at the progress through the current song. the refresh
timer also tries to trigger near the end of a song if the time to the end is
less than the refresh timer.

-kdf

Philip Meyer
2004-11-27, 10:47
>it should still refresh. it should only stop refreshing if it didn't get a
>response at some point. for instance, if you restart the server.
>
Well, I believe the music had been playing for 6 hours uninterrupted through a wireless squeezebox. I was playing a computer game at the same time, but that shouldn't have stopped the server (and like I said I could hear the music in the background).

I've just checked again now, and the indicated now-playing track is again about 5 tracks out of date. The slimserver window has been iconised during that time.

>its an approximate guess at the progress through the current song. the refresh
>timer also tries to trigger near the end of a song if the time to the end is
>less than the refresh timer.
It seems to update every second, taking 30 updates to completely fill up before recycling to 0.

I am playing an .m3u from a radio station that does not contain any #EXTINFO lines, so there are no track length times. Is this the expected behaviour?

Thanks,
Phil

kdf
2004-11-27, 12:01
Quoting Philip Meyer <slim (AT) hergest (DOT) demon.co.uk>:

> I've just checked again now, and the indicated now-playing track is again
> about 5 tracks out of date. The slimserver window has been iconised during
> that time.

perhaps that's a bug then. does it get stuck with all skins? I only ever use an
actual browser since I dont run the EXE.

>
> >its an approximate guess at the progress through the current song. the
> refresh
> >timer also tries to trigger near the end of a song if the time to the end is
> >less than the refresh timer.
> It seems to update every second, taking 30 updates to completely fill up
> before recycling to 0.
>
> I am playing an .m3u from a radio station that does not contain any #EXTINFO
> lines, so there are no track length times. Is this the expected behaviour?
>
if no duration is known, the bar will default to the refresh timing. its just a
simple javascript to change the colours progressively each second.

-kdf

Philip Meyer
2004-11-28, 05:10
>perhaps that's a bug then. does it get stuck with all skins? I only ever use an
>actual browser since I dont run the EXE.

I just tried it again with the default skin, and yes, it stuck in the same way.

Phil

Philip Meyer
2004-11-28, 05:30
>if no duration is known, the bar will default to the refresh timing. its just a
>simple javascript to change the colours progressively each second.
>
When the window is active, I can see it refreshing every 30 seconds. However, the green bar does seem to equate to 30 secs. For example, at the moment, a page refresh is ocurring when the green bar is half-full (or is that half-empty ;-)).

As it is, the green bar doesn't serve much of a purpose, as it doesn't show how long there is to go until a refresh will occur.

I guess the green bar is incrementing every second, but not in time with the refresh. If a page refresh (either automatic or manual) were to reset the green progress bar each time, I guess it would be quite useful!

kdf
2004-11-28, 13:03
Quoting Philip Meyer <slim (AT) hergest (DOT) demon.co.uk>:

> >perhaps that's a bug then. does it get stuck with all skins? I only ever
> use an
> >actual browser since I dont run the EXE.
>
> I just tried it again with the default skin, and yes, it stuck in the same
> way.
>
I think you shoudl file a bug report on that. I always thought that the EXE
browser was just stealing IE resources and embeddign them, but maybe it isn't
the same after all. hopefully something can be done, but it may be a bug from
the windows API.

-kdf

Philip Meyer
2004-11-29, 02:14
>I think you shoudl file a bug report on that.
Thanks kdf. Bug 694 raised.

Phil