INTERACT FORUM

Please login or register.

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

Author Topic: Numberzones  (Read 822 times)

Soul_Rvr911

  • Galactic Citizen
  • ****
  • Posts: 334
Numberzones
« on: September 12, 2014, 03:43:28 pm »

The NumberZones value in MCWS's /Playback/Zones call is incorrect if the user has hidden zones. For example, if the user has 2 zones but opts to hide one of them, /Playback/Zones still returns <Item Name="NumberZones">2</Item> even though the response only contains a single zone.
Logged
Check out my JRiver remote application eos, available for Android and BlackBerry 10!
Android: http://yabb.jriver.com/interact/index.php?topic=89392.0
BB10: http://yabb.jriver.com/interact/index.php?topic=79677.0

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42002
  • Shoes gone again!
Numberzones
« Reply #1 on: September 12, 2014, 05:09:40 pm »

The NumberZones value in MCWS's /Playback/Zones call is incorrect if the user has hidden zones. For example, if the user has 2 zones but opts to hide one of them, /Playback/Zones still returns <Item Name="NumberZones">2</Item> even though the response only contains a single zone.

I think that's sort of operating as intended.  There are two zones, it's just that one of them is hidden.
Logged
Matt Ashland, JRiver Media Center

Soul_Rvr911

  • Galactic Citizen
  • ****
  • Posts: 334
Numberzones
« Reply #2 on: September 12, 2014, 05:53:26 pm »

I think that's sort of operating as intended.  There are two zones, it's just that one of them is hidden.
I understand what you're getting at, but that doesn't seem like proper API design. The NumberZones field should represent the number of zones in the response, not the total number of zones. If you look at the way that the response is formatted, that field is required in order for a client to know how many zones to look for.
Logged
Check out my JRiver remote application eos, available for Android and BlackBerry 10!
Android: http://yabb.jriver.com/interact/index.php?topic=89392.0
BB10: http://yabb.jriver.com/interact/index.php?topic=79677.0
Pages: [1]   Go Up