Open ghost opened 8 years ago
Currently, I have not implemented a way to change the volume and do not know whether the API this library is primarily based on supports that feature (I suppose not). The only way I could think of right now would be to control the client's volume in the Windows audio mixer, but that would be a rather "dirty" workaround. I will look into this issue but I cannot promise that I will be able to provide a better alternative. Thank you for the hint, that that would be a nice feature to have.
Allright, thanks for the fast answer.
I think i am going to put some research into Spotify too, maybe i can find something out about having more controlling possibilities.
But anyways, great work on that library, its fairly easy to use :)
Interestingly enough, after just naively querying remote/volume.json
, the spotify client seems to actually be listening to this url, so there definitely is a way to control the volume of the spotify client over the api exposed by the spotify web helper. But unfortunately it seems that doing so requires some other OAuth scope - I get the following response:
[ { "error": { "type": "4111", "message": "Invalid OAuth scope for request" }, "version": 9, "client_version": "1.0.39.157.g674ae377", "running": true } ]
If you should have suggestions on how to gain access to this api I'd be glad to hear them :)
Edit: It seems like there is a thread on the spotify community forum about this issue - unfortunately without a solution to the problem: https://community.spotify.com/t5/Other-Partners-Windows-Phone-etc/Remote-controller/td-p/784011
Hi,
i just wanted to know whether it is possible to change the volume with this little API. If not, is there maybe a way to implement this into the API?
Thanks in advance.