duncan3dc\Sonos\Controller::removeSpeaker PHP Method

removeSpeaker() public method

Removes the specified speaker from the group of this Controller.
public removeSpeaker ( duncan3dc\Sonos\Speaker $speaker ) : static
$speaker duncan3dc\Sonos\Speaker The speaker to remove from the group
return static
    public function removeSpeaker(Speaker $speaker)
    {
        $speaker->soap("AVTransport", "BecomeCoordinatorOfStandaloneGroup");
        $this->network->clearTopology();
        return $this;
    }