Bug 6135 - Player change doesn't work reliably
: Player change doesn't work reliably
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Skins
: 7.0
: All All
: P1 major with 2 votes (vote)
: ---
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-11-11 21:57 UTC by Michael Herger
Modified: 2009-05-19 08:44 UTC (History)
3 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Herger 2007-11-11 21:57:10 UTC
On a player change the Default skin tries to update all links to use the new player. That's bigger problem with the left hand frame:

- we have less control over its content than in the main panel where we try to avoid using hard coded player ids
- having a JS go through all links and change the player id wouldn't work for JS based links
- reloading the page (as done today) with the new player id has some dangerous side effects like eg. a random mix being started automatically if this was the last action executed in the left frame
- bug 5842 is reporting similar odd behaviour for the favorites plugin
Comment 1 Michael Herger 2007-11-11 23:42:09 UTC
Phil - can you give me step by step instructions on how to get favorites play on the wrong player? While I've seen it with RandomPlay, too, I can't reproduce it.
Comment 2 Philip Meyer 2007-11-12 00:23:16 UTC
Select Player A.
Add a Live Music Archive album to the Favorites.
Navigate to the favorite.
Switch to Player B.
Press the Play button on any item within the favorite.
Comment 3 Michael Herger 2007-11-12 00:30:03 UTC
"Navigate to the favorites" - do you just select them from the expanded list in the home or what do you mean by "navigate"?
Comment 4 Philip Meyer 2007-11-12 00:34:53 UTC
In the WebUI default skin, from the home page, expand the Favorites menu, and click on the the name of the favorite.

Comment 5 KDF 2007-11-12 00:49:56 UTC
let js use a global var for player, then you only have to update that var.  OR have js always grab the stored cookie so that it gets the player last set by the chooser.  for html links, replace player in the dom.  for forms, have to use the cookie or reload the form. where none of the above works, reload the page with a string replace on player and remove any other args where you can so that queries dont' cause new commands.  It's also an idea to have all commands be made as posts through an ajax call where possible so you avoid having these repeat commands (there is a nasty problem with safari in this regard)
Comment 6 Michael Herger 2007-11-12 01:47:06 UTC
Thanks for the input, kdf. But I'm not sure we can reliably replace all references withing a page. If there's eg something like "<a href="javascript:doIt('01:23:45:67:89:ab')"> then we're lost. We can of course fix the official pages not to do so. But we've no control over 3rd party plugins.

The current implementation reloads the page after having replaced player ids in the url. But this again is potentially dangerous as we can't control what action is launched by this url. Playing random mixes on the wrong player was an annoying, but still harmless example.

Removing all parameters renders this effort useless in eg. the browse menus where state is transferred in urls.

I was wondering whether we should come up with a list of safe urls which we can use with the player id replacement. And in all other cases we'd remove parameters before adding the new player id.
Comment 7 Michael Herger 2007-11-12 02:50:36 UTC
> In the WebUI default skin, from the home page, expand the Favorites menu, and
> click on the the name of the favorite.

change 14630 should fix this

Comment 8 Michael Herger 2007-11-13 01:21:17 UTC
*** Bug 6147 has been marked as a duplicate of this bug. ***
Comment 9 Michael Herger 2007-12-13 08:21:12 UTC
Let's consider this fixed and re-open if needed.
Comment 10 Chris Owens 2008-03-07 09:04:27 UTC
This bug is being closed since it was resolved for a version which is now released!  Please download the new version of SqueezeCenter (formerly SlimServer) at http://www.slimdevices.com/su_downloads.html

If you are still seeing this bug, please re-open it and we will consider it for a future release.
Comment 11 Jim McAtee 2009-03-16 15:56:31 UTC
Request that this bug be reopened.  See http://forums.slimdevices.com/showthread.php?p=407088.

Playing or adding music from the browse pane will occasionally be sent to the wrong player/playlist.

I don't know how to reproduce the problem, but it happens fairly regularly on my system.  Maybe once a month or so.  When it happens, changing the player using the drop-down has no effect.  I can change it several times, but music continues to go to the same (wrong) player.  When it gets into this state I don't recall whether or not I see the left hand pane reload, as it should when the player in the drop-down is changed.  I'll try to take note next time.
Comment 12 Mikael Nyberg 2009-03-25 12:59:21 UTC
Just experienced this today ,added my vote
Comment 13 Ken 2009-05-19 06:53:50 UTC
Happened to me with the 7.4 nightly from May 13 (one of the last before the switch to SQLite). Haven't tried it yet with the SQLite builds.
Comment 14 Jim McAtee 2009-05-19 08:44:47 UTC
Do we want to reopen this bug or start a new one?