Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Loop setting in API does not match Loop in Official Client #5

Closed
pluggemi opened this issue Jun 4, 2017 · 2 comments
Closed

Comments

@pluggemi
Copy link

pluggemi commented Jun 4, 2017

While adding support for Loop, Shuffle, and Auto Radio buttons in the roon-web-controller [1] extension, I noticed that the Loop status in the zone.settings array do not match the official client. The status of "loop" and "loop_one" appear to be reversed from what the official clients on IOS and Mac show.

This one is correct:
Loop Disabled in Official Client
Array of the zone.settings
{"loop":"disabled","shuffle":false,"auto_radio":false}

These two are reversed:
Loop All in Official client
Array of the zone.settings
{"loop":"loop_one","shuffle":false,"auto_radio":false}

Loop One in Official Client
Array of the zone.settings
{"loop":"loop","shuffle":false,"auto_radio":false}

I checked the .js files in the node-roon-api and the node-api-transport projects, but did not see anything obvious. So this may be getting returned from the core incorrectly.

The rest of the zone information correctly reflects the loop setting and I have a workaround in place in my client to take this into account. But I wanted to pass this observation on.

[1] https://github.com/pluggemi/roon-web-controller

pluggemi pushed a commit to pluggemi/roon-web-controller that referenced this issue Jun 4, 2017
@pluggemi
Copy link
Author

pluggemi commented Jun 4, 2017

By the way, the commands in the transport.change_settings API call work correctly. It appears to be isolated to the zone output array.

@blucz
Copy link

blucz commented Jun 22, 2017

[master 393ecfff22] fix reversed loop/loop_one status
 1 file changed, 2 insertions(+), 2 deletions(-)

This fix should roll out with the next release of Roon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants