StuartUSA wrote:
> > thouky wrote:
> > I think I've found the problem - ShairTunes doesn't work when the player
> > is synchronized with other players. Removing the destination Squeezebox
> > from its sync group allows the audio to play, otherwise it just sits
> > there trying to connect...> >
> Glad you got it working.
>
Thank you for all of your help.
To avoid needing to remove the device from its sync group I have added
the following to the SETUP code within the ShairTunes plugin's
*conn_handle_request* function:
Code:
--------------------
my $url = "airplay://$host:$hport/stream.wav";
my $client = $conn->{player};
my @otherclients = grep { $_->name ne $client->name and $_->power }
$client->syncGroupActiveMembers();
foreach my $otherclient (@otherclients)
{
$log->info('turning off: ' . $otherclient->name);
$otherclient->display->showBriefly({line => ['AirPlay streaming to ' .
$client->name . ':', 'Turning this player off']});
$otherclient->execute(['power', 0]);
}
$conn->{player}->execute( [ 'playlist', 'play', $url ] );
--------------------
I would have preferred to support streaming to all of the devices in the
sync group, but I haven't been able to work out why that isn't working.
------------------------------------------------------------------------
thouky's Profile: http://forums.slimdevices.com/member.php?userid=42109
View this thread: http://forums.slimdevices.com/showthread.php?t=100379
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins