duncan3dc\Sonos\Tracks\Stream::getUri PHP Method

getUri() public method

Get the URI for this stream.
public getUri ( ) : string
return string
    public function getUri()
    {
        return $this->uri;
    }

Usage Example

Beispiel #1
0
 /**
  * Play a stream on this controller.
  *
  * @param Stream $stream The Stream object to play
  *
  * @return static
  */
 public function useStream(Stream $stream)
 {
     $this->soap("AVTransport", "SetAVTransportURI", ["CurrentURI" => $stream->getUri(), "CurrentURIMetaData" => $stream->getMetaData()]);
     return $this;
 }