Bugzilla – Bug 7426
Power-on-resume does not work for Internet radio
Last modified: 2009-07-31 10:17:49 UTC
The "Pause at power off / Resume at power on" selection for Settings / Players / <player> / Audio / Power On Resume does not work as expected. On power-off, if the current song is a remote URL, then it does a Stop instead of a Pause. This seems perfectly reasonable. On power-on, if the current song is a remote URL, then it does not Play. This does not seem right. When an SB is being used for Internet radio then one would expect that "turning the radio back on" would have it start playing again. Not all remote URLs are radio stations (live streams) and so, in some cases, power-on-Play would restart the previously-playing track instead of resuming it. If this is a general problem, then the user can select an alternate value for the Power On Resume preference. It is not possible, in general, to tell if a remote URL represents a live stream or not. The relevant code fragment is at the end of Slim::Player::Player::power(): if ($resumeOn =~ /Play/ && Slim::Player::Playlist::song($client) && !Slim::Music::Info::isRemoteURL(Slim::Player::Playlist::url($client))) { # play if current playlist item is not a remote url $client->execute(["play"]); }
I tend to agree with this (I suspect its my code..) The critical thing is to make sure that stop is executed when the player is powered off to drop the internet stream.
I agree. Resume on power on should work if the user was playing a radio station and powered off. Powering on should restart, I think. You know, like a radio.
Dean, do you want to set a target for this?
Change 17944
Verified fixed in 7.0.1 - 19325
This bug has recently been fixed in the latest release of SqueezeCenter 7.0.1 Please try that version, if you still see the error, then reopen this bug. To download this version, please navigate to: http://www.slimdevices.com/su_downloads.html
Reduce number of active targets for SC