joshmcarthur / on-the-spot

A web-controllable searching and queueing system for Spotify
9 stars 4 forks source link

Get rid of meta refresh on Queue page #3

Closed joshmcarthur closed 11 years ago

joshmcarthur commented 12 years ago

Currently, the queue page refreshes every 5 or 10 seconds. This breaks notifications, which can't handle a page reload (but should really be able to). It seems neater now that we have a pubsub framework in place, to push track play changes using PrivatePub, so that:

a) Changes happen in realtime instead of waiting for the next page load b) We can get rid of the meta refresh

Jack has also suggested getting rid of the Queue page altogether and just showing this info in the modal - I vaguely like this idea, but is does feel like a bit of a workaround, and is much tricker to make responsive.

joshmcarthur commented 12 years ago

I should just be able to refresh this by pushing a string of HTML out from the daemon - JS on the view subscribed to queue/current and queue/next should be able to listen for this, and replace the relevant DOM elements.

joshmcarthur commented 11 years ago

Oh, this is done :-)