I am changing CSS-relevant variables before issuing JSONRPC-Calls. So it looks like the UI already knows the server said yes and the play/pause button toggles between its two icons smoothly.
This bears two issues:
If this icon-change races with a remaining getStatus-call, the icon might toggle back to an incorrect state
I am also not doing this consistently, e.g. for playItem in controller.js line 186
I am changing CSS-relevant variables before issuing JSONRPC-Calls. So it looks like the UI already knows the server said yes and the play/pause button toggles between its two icons smoothly.
This bears two issues: