wt0 wrote: 
> The abort and restart is definitely triggered by the server. After audio
> data is used in SB Player, it's gone.  There's no way for SB Player to
> go back to replay previous audio samples. When I initially tested
> reconnection behavior I played radio streams, which is probably why I
> never noticed a restart behavior.
> 
> 
> This is interesting. There's nothing in the Slimproto docs about a
> reconnect flag, but those docs are quite old and not quite complete.  An
> unused bit in the wifi channel list of the HELO message may be used to
> signify that this is a reconnection so the server won't restart the
> track. I'll have to do some tests.
> 
> BTW, HELO is the first message the player sends to server when it
> initiates a connection, not the other way around; ie. Squeezelite is not
> responding to HELO, it's sending it.


You're right - it's been awhile since I looked at the proto exchanges
but the reconnect capability is still sent to LMS and the following is
the Squeezebox.pm code which checks the bit.  I don't know what
reconnect effect has - it's strange that many non-squeezelite s/w/
players don't use it.

Code:
--------------------
    
        if (!$reconnect) {
  
                if ($client->power()) {
                        $controller->playerActive($client);
                }
                
                if ($controller->onlyActivePlayer($client)) {
                        main::INFOLOG && $sourcelog->is_info && 
$sourcelog->info($client->id . " restaring play on pseudo-reconnect at "
                                . ($bytes_received ? $bytes_received : 0));
                        $controller->playerReconnect($bytes_received);
                } 
                
                if ($client->isStopped()) {
                        # Ensure that a new client is stopped, but only on sb2s
                        if ( $client->isa('Slim::Player::Squeezebox2') ) {
                                main::INFOLOG && $sourcelog->is_info && 
$sourcelog->info($client->id . " forcing stop on pseudo-reconnect");
                                $client->stop();
                        }
                }
        } else {
                # bug 16881: player in a sync-group may have been made inactive 
upon disconnect;
                # make sure it is active now.
                if ($client->power()) {
                        $controller->playerActive($client);
                }
        }
  
--------------------


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=107498

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to