示例#1
0
 /**
  * Adds the specified speaker to the group of this Controller.
  *
  * @param Speaker $speaker The speaker to add to the group
  *
  * @return static
  */
 public function addSpeaker(Speaker $speaker)
 {
     if ($speaker->getUuid() === $this->getUuid()) {
         return $this;
     }
     $speaker->soap("AVTransport", "SetAVTransportURI", ["CurrentURI" => "x-rincon:" . $this->getUuid(), "CurrentURIMetaData" => ""]);
     $this->network->clearTopology();
     return $this;
 }
示例#2
0
 /**
  * Set the speaker of the alarm.
  *
  * @param Speaker $speaker The speaker to attach this alarm to
  *
  * @return static
  */
 public function setSpeaker(Speaker $speaker)
 {
     return $this->setRoom($speaker->getUuid());
 }