Bug 1723 - visualizer doesn't work when you change songs from the web interface
: visualizer doesn't work when you change songs from the web interface
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Player UI
: 6.1.0
: All All
: P2 normal (vote)
: ---
Assigned To: Blackketter Dean
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-27 16:25 UTC by Kevin Pearsall
Modified: 2009-09-08 09:28 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Pearsall 2005-06-27 16:25:47 UTC
using trunk revision 3576.

have an sb1 and an sb2 synchronized.

if i change songs using the web interface the visualizer doesn't kick on.  but
if i change it using the remote the visualizer works fine.

also when it plays out to the next song the visualizer seems to come back on.
Comment 1 Kevin Pearsall 2005-06-27 16:27:19 UTC
actually...  it doesn't come back on until you change your visualizer settings.
Comment 2 Vidur Apparao 2005-06-30 14:07:10 UTC
I assume you mean the side visualizer? Or the screensaver one?
Comment 3 KDF 2005-06-30 14:35:51 UTC
is this only when synced? I've never noticed this before, but I'm rarely syncing
players.
Comment 4 Kevin Pearsall 2005-07-05 16:22:29 UTC
hmmm, i think you're right, i t hink this may only happen when synchronized.
Comment 5 Kevin Pearsall 2005-07-05 16:27:31 UTC
oh also in regards to vidur's question, seeing this with the side visualizer, yes.

does not seem to affect the screensavers.
Comment 6 Vidur Apparao 2005-07-18 10:06:31 UTC
Turns out that it's not specifically related to synchronization either. There
are various circumstances (synchronization being one of them) where a client's
update() method isn't called when it starts playing. The $client->update()
method calls $client->visualizer() for a SB2 and that's what sets up the
visualizer. The visualizer display rectifies itself if you start scrolling with
the remote or the Now Playing screensaver kicks in i.e. the next time update()
is called.

You can recreate this problem with a standalone SB2 by just playing an
album/artist/track anytime the SB2 is not in Now Playing mode. Playlist
modifications ('playlist play' or 'playlist add' in
Slim::Control::Command::execute syntax) on their own don't trigger an update(),
only the 'play', 'pause' and 'stop' commands do. We may need to do a
$client->update() somewhere in Slim::Player::Source::playmode() to catch all cases.

I'm tempted to push this to post 6.1 since it's not critical and the display
rectifies itself in most cases.
Comment 7 Blackketter Dean 2005-07-18 11:48:55 UTC
Well, 'playlist play' is effectively a "clear", "add" and "play", which shoudl trigger an update, just like play 
does, no?  'playlist add' should be silent...  I'm good with punting on it, tho' if it's risky at all.  I propose 
this patch:

--- server/Slim/Control/Command.pm      (revision 3706)
+++ server/Slim/Control/Command.pm      (working copy)
@@ -1733,6 +1733,7 @@
 
        if (defined($index)) {
                Slim::Player::Source::jumpto($client, $index);
+               $client->update();
        }
 
        $callbackf && (&$callbackf(@$callbackargs));
Comment 8 Blackketter Dean 2005-07-19 08:02:26 UTC
Kevin: can you try this patch and let me know if it works for you?  I only have one player here...
Comment 9 Vidur Apparao 2005-07-19 10:07:16 UTC
The patch doesn't catch many of the ways tracks can be played/added via the web
interface. It seems that verbs like "loadalbum" and "loadtracks" don't go
through the load_done bottleneck. The right place to add the update() may be
Source.pm.
Comment 10 Blackketter Dean 2005-07-19 10:10:46 UTC
Right, but loadalbum doesn't change the playback, so the update isn't needed, right?
Comment 11 Vidur Apparao 2005-07-19 10:47:35 UTC
Sho' does change playback - that's what "loadalbum" and "loadtracks" were meant
to do.
Comment 12 Vidur Apparao 2005-07-19 11:01:38 UTC
Punting for 6.1, since the display rights itself easily (when screensaver is
activated or IR commands are received).
Comment 13 KDF 2005-07-19 11:16:30 UTC
It could even be an option to place it in Player::Playlist::refreshPlaylist.
you can check against $client->currentPlaylistModified or
$client->currentPlaylistChangeTime if you want to make sure to only call if the
playlist has changed.
Comment 14 Blackketter Dean 2005-07-19 18:57:15 UTC
Vidur's probably right, if the playmode changes, an appropriate visualizer update should take place...
Comment 15 Dan Sully 2006-07-23 17:24:36 UTC
Is this still an issue for 6.5?
Comment 16 Chris Owens 2006-08-16 13:42:11 UTC
Does this still happen?
Comment 17 Blackketter Dean 2006-08-22 11:41:23 UTC
Kevin?
Comment 18 Dan Sully 2006-09-02 16:58:41 UTC
Ping!
Comment 19 Chris Owens 2006-09-08 11:05:28 UTC
Ross, could you haev a look at this, too?
Comment 20 Ross Levine 2006-09-08 15:32:02 UTC
SlimServer Version: 6.5b1 - 9491 - Windows XP

SB2 and SB3 synced. I played a song, selected a different song from web UI, visualizers don't stop working, they act as they should. 

In other words, fixed.