Marantz NR1509 HEOS CLI ProtocolSpecification Version 1.11 02072018 - Page 11

Set Play State, 2.5 Get Now Playing Media

Page 11 highlights

Command: heos://player/get_play_state?pid=player_id Attribute Description Enumeration pid Player id returned by 'get_players' or 'get_groups' command N/A Response: { "heos": { "command": " player/get_play_state ", "result": "success", "message": "pid='player_id'&state='play_state'" } } Example: heos://player/get_play_state?pid=1 4.2.4 Set Play State Command: heos://player/set_play_state?pid=player_id&state=play_state Attribute Description Enumeration pid Player id returned by 'get_players' or 'get_groups' command N/A state Player play state play, pause, stop Response: { "heos": { "command": " player/set_play_state ", "result": "success", "message": "pid='player_id'&state='play_state'" } } Example: heos://player/set_play_state?pid=1&state=play Note: Play state of a group can be controlled by sending set_play_state command to any of the player in the group. 4.2.5 Get Now Playing Media Command: heos://player/get_now_playing_media?pid=player_id Attribute pid id (options) Description Player id returned by 'get_players' or 'get_groups' command Options available for now playing media Enumeration N/A Following options are currently supported for now playing media 11 - Thumbs Up 12 - Thumbs Down 19 - Add station to HEOS Favorites Response: The following response provides example when the speaker is playing a song. Note: For local music and DLNA servers sid will point to Local Music Source id. {

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45

Command: heos://player/get_play_state?pid=player_id
Attribute
Description
Enumeration
pid
Player id returned by 'get_players' or 'get_groups' command
N/A
Response:
{
"heos": {
"command": " player/get_play_state ",
"result": "success",
"message": "pid='player_id'&state='play_state'"
}
}
Example: heos://player/get_play_state?pid=1
4.2.4 Set Play State
Command: heos://player/set_play_state?pid=player_id&state=play_state
Attribute
Description
Enumeration
pid
Player id returned by 'get_players' or 'get_groups' command
N/A
state
Player play state
play, pause, stop
Response:
{
"heos": {
"command": " player/set_play_state ",
"result": "success",
"message": "pid='player_id'&state='play_state'"
}
}
Example: heos://player/set_play_state?pid=1&state=play
Note: Play state of a group can be controlled by sending set_play_state command to any of the player in the group.
4.2.5 Get Now Playing Media
Command: heos://player/get_now_playing_media?pid=player_id
Attribute
Description
Enumeration
pid
Player id returned by 'get_players' or 'get_groups'
command
N/A
id
(options)
Options available for now playing media
Following options are currently supported for now playing
media
11 - Thumbs Up
12 - Thumbs Down
19 - Add station to HEOS Favorites
Response:
The following response provides example when the speaker is playing a song.
Note: For local music and DLNA servers sid will point to Local Music Source id.
{