Qsonix Integration User Manual

Page 32

Advertising
background image

Qsonix Integration Guide

Page | 32

[ZoneNumber]
GET NOWPLAYING NEXT
[ZoneNumber]
GET NOWPLAYING PREVIOUS
[ZoneNumber]

GET NOWPLAYING LAST
[ZoneNumber]
GET NOWPLAYING CURRENT
[ZoneNumber]
GET NOWPLAYING PAGESIZE
[PageSize]

commands. As with PLAYLISTS, the basic command “GET
NOWPLAYING” will return the first page of tracks from the now
playing list. The PAGESIZE command can be used to set the
number of playlists returned per page (specified by the PageSize
parameter). This would typically be called upon initialization of

the client application. The ZoneNumber parameter must be a
value of either 1 or 2. Omitting the paging command
parameter (ex: GET NOWPLAYING 1) will retrieve the current
page index and can be useful for refreshing the contents of that
page.

Response format:

NOWPLAYING[PageNumber] [TotalPages] [ZoneNumber]
[TrackID]

[TrackTitle][AlbumTitle][AlbumArtistName][Sequence]

[IsCurrent]

Field Descriptions:

PageNumber – The number of the page being returned
(numbered from 1 to the total number of pages)
TotalPages – The total number of pages available for this
response
ZoneNumber - The number of the zone that this result applies to
TrackID – A system-assigned ID number uniquely assigned to
each track in the system
TrackTitle – The name of the song / title of the track

AlbumTitle – The title of the album on which the track appears
AlbumArtistName – The name of the artist from the album
where the track appears.
Sequence – An incremented number assigned to each track in
the now playing list. This indicates in which position the track
appears in the list.
IsCurrent – If this field is “1”, then this track is the currently
playing track (or if stopped, it is the current index that would
play when play is started). If it is “0” (zero), this is not the

current track.

GET ZONENAME [ZoneNumber]

Used to retrieve the user-specified name assigned to each of the
zones in the system. The ZoneNumber parameter must be a
value of 1 or 2.

Response Format:

ZONENAME[ZoneNumber][ZoneName]

Field Descriptions:

ZoneNumber – The number of the zone
ZoneName – The user-specified name of the zone


Advertising