/** * Get the metadata xml for this track. * * @return string */ public function getMetaData() { $uri = substr($this->uri, strlen(self::PREFIX)); if ($pos = strpos($uri, ".mp3")) { $uri = substr($uri, 0, $pos); } return Helper::createMetaDataXml(Helper::TRACK_HASH . self::UNIQUE . "{$uri}", "-1", ["dc:title" => "", "upnp:class" => "object.item.audioItem.musicTrack"], "519"); }
/** * Get the metadata xml for this message. * * @return string */ public function getMetaData() { return Helper::createMetaDataXml("-1", "-1", ["res" => $this->getUri(), "upnp:albumArtURI" => "", "dc:title" => $this->text, "upnp:class" => "object.item.audioItem.musicTrack", "dc:creator" => "Google", "upnp:album" => "Text To Speech"]); }
/** * Get the metadata xml for this track. * * @return string */ public function getMetaData() { return Helper::createMetaDataXml($this->getId(), "-1", ["res" => $this->uri, "upnp:albumArtURI" => $this->albumArt, "dc:title" => $this->title, "upnp:class" => "object.item.audioItem.musicTrack", "dc:creator" => $this->artist, "upnp:album" => $this->album]); }
/** * Get the metadata xml for this stream. * * @return string */ public function getMetaData() { return Helper::createMetaDataXml("-1", "-1", ["dc:title" => $this->getName() ?: "Stream", "upnp:class" => "object.item.audioItem.audioBroadcast", "desc" => ["_attributes" => ["id" => "cdudn", "nameSpace" => "urn:schemas-rinconnetworks-com:metadata-1-0/"], "_value" => "SA_RINCON65031_"]]); }
/** * Get the metadata xml for this track. * * @return string */ public function getMetaData() { $uri = substr($this->uri, strlen(self::PREFIX)); return Helper::createMetaDataXml(Helper::TRACK_HASH . "{$uri}", "-1", ["dc:title" => "", "upnp:class" => "object.item.audioItem.musicTrack"], static::$region); }