INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MCWS Playback/Info does not return ZoneName for the default (Player) zone  (Read 738 times)

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4231

If you call this MCWS endpoint for the zone that MC provides by default then the ZoneName element is not returned in the payload.

e.g.

Code: [Select]
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Response Status="OK">
<Item Name="ZoneID">0</Item>
<Item Name="State">0</Item>
<Item Name="FileKey">-1</Item>
<Item Name="NextFileKey">-1</Item>
<Item Name="PositionMS">0</Item>
<Item Name="DurationMS">0</Item>
<Item Name="ElapsedTimeDisplay">0:00</Item>
<Item Name="RemainingTimeDisplay">Live</Item>
<Item Name="TotalTimeDisplay">Live</Item>
<Item Name="PositionDisplay">0:00 / Live</Item>
<Item Name="PlayingNowPosition">-1</Item>
<Item Name="PlayingNowTracks">0</Item>
<Item Name="PlayingNowPositionDisplay">0 of 0</Item>
<Item Name="PlayingNowChangeCounter">2</Item>
<Item Name="Bitrate">0</Item>
<Item Name="Bitdepth">0</Item>
<Item Name="SampleRate">0</Item>
<Item Name="Channels">0</Item>
<Item Name="Chapter">0</Item>
<Item Name="Volume">0.1</Item>
<Item Name="VolumeDisplay">10%  (-55.0 dB)</Item>
<Item Name="ImageURL">MCWS/v1/File/GetImage?File=4294967295</Item>
<Item Name="Name">Media Center</Item>
</Response>

If you go to MC and press F2 on that zone and then press return (without changing the name) then the ZoneName element appears in the output.

Note the doc for this endpoint has some other inaccuracies as I notice the following fields are not always present

Artist
Album
Rating
Status

Artist, Album and Rating are understandable because it's not playing anything (though there are a bunch of other fields that also seem playback item specific but are present), not sure why Status doesn't appear though.

Logged
Pages: [1]   Go Up