thelinmichael / spotify-web-api-node

A Node.js wrapper for Spotify's Web API.
http://thelinmichael.github.io/spotify-web-api-node/
MIT License
3.11k stars 497 forks source link

Player command failed: Cannot control device volume VOLUME_CONTROL_DISALLOW #434

Open iboxgithub opened 2 years ago

iboxgithub commented 2 years ago

Hi, as indicated in the title, if I want to cange the volume I get the error below... This happens when I call setVolume from the WebAPI SDK spotifyApi.setVolume(volume) I don't know how to fix it as I can't find an explanation in Spotify docs. Has anyone ever had this problem? Thanks for your help 😄

image

demonking15543 commented 2 years ago

I"m also getting same error

bmrobin commented 1 year ago

found this issue after trying to work on a similar feature, i'm curious if yall were using iOS ? i am playing audio on Spotify through my iPhone and when i try to use this library's setVolume() i get the same error. however, after looking into it a little further i think this may be the fault of the Spotify app on the device that's currently playing the audio, and not the fault of spotify-web-api-node

seems like the SDK for the app used to allow this, but has subsequently stopped (and they have no plans to re-enable that). https://github.com/spotify/ios-sdk/issues/32