protocol.PlayerStatus
This structure contains useful information about the current state about a player.
Parameter | Optional | Max Allowed | DataType | Notes |
---|---|---|---|---|
pid | no | 1 | text | player id |
ctm | no | 1 | integer | current time in seconds |
pau | no | 1 | boolean | is paused: on/off |
ply | no | 1 | boolean | is song playing: on/off |
shf | no | 1 | boolean | shuffle state: on/off/ |
rep | no | 1 | enumeration | repeat state: off/item/all |
tr | yes | 1 | SiTrack | current mTrack. |
ix | no | 1 | integer | current player queue position |
Example xml:
<stat> <pid>1</pid> <ctm>12</ctm> <pau>on</pau> <ply>on</ply> <shf>off</shf> <rep>item</rep> <tr> <trid>432546325432</trid> <trnm>Dog Days are over</trnm> <arnm>Florence and the Machine</arnm> <arid>432546325432</arid> <alnm>The Best of Florence and the Machine</alnm> <alid>432546325432</alid> <dura>350909</dura> <cv>http://www.apple.com/art.jpg</cv> <grid>343443344344</grid> <grnm>rock</grnm> <cpid>3434353</cpid> <cpnm>3434353</cpnm> <bpm>123</bpm> <brt>256 kbs</brt> <frq>44100 hz</frq> <yr>1998</yr> <tarid>65565665</tarid> <tarnm>Florence and the Machine</tarnm> <cve>1</cve> <alarid>432546325432</alarid> <alarnm>The Best of Florence and the Machine</alarnm> </tr> <ix>2</ix> </stat>