Property | Type | Description | |
---|---|---|---|
$duration | string | The duration of the currently active track (hh:mm:ss). | |
$position | string | The position of the currently active track (hh:mm:ss). | |
$queueNumber | integer | The zero-based number of the track in the queue. | |
$stream | string | null | The name of the stream currently currently playing (or null if we are not on a stream). | |
$trackNumber | integer | The number of the track on it's album. |
Method | Description | |
---|---|---|
__construct ( $uri = null ) | Create a Track object. | |
createFromXml ( duncan3dc\DomParser\XmlElement $xml, |
Update the track properties using an xml element. |
public static createFromXml ( duncan3dc\DomParser\XmlElement $xml, |
||
$xml | duncan3dc\DomParser\XmlElement | The xml element representing the track meta data. |
$controller | A controller instance on the playlist's network | |
return | static |
public string $duration | ||
return | string |
public string $position | ||
return | string |
public int $queueNumber | ||
return | integer |
public int $trackNumber | ||
return | integer |