You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know that one can get the current Spotify volume by MPRIS or environmental variable with the on_song_change_hook, but is there any way to write the volume to Spotify ?
MPRIS doesn't work because it is a read-only property.
This would be massively useful if the volume is changed outside of Spotify; eg. by control knob.
If there is already a solution, please let me know.
Otherwise, consider this as a feature request.
The text was updated successfully, but these errors were encountered:
I just had a look at the code myself to consider how this could happen.
I could image two ways;
Using rspotify such as the seek and set position methods that are already implemented.
Using the set_volume function provided by librespot.
The problem with No.1 is, that the entire rspotify implementation seems broken. It is known that none of the related methods are functional ( see #612 ).
Thus, using the same style of function for volume will be equally non-functional.
The problem with No.2 is, that this function is not public and thus cannot be accessed. This would require a change to Librespot, perhaps adding "VolumeSet" to the accessible spirc functions.
Speaking of which, there are two more volume control functions that could be used but aren't in the current version of spotifyd.
VolumeUp & VolumeDown that is.
They provide the possibility to change volume via dbus in 6% steps.
This might be of help to some. #963
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi,
I know that one can get the current Spotify volume by MPRIS or environmental variable with the on_song_change_hook, but is there any way to write the volume to Spotify ?
MPRIS doesn't work because it is a read-only property.
This would be massively useful if the volume is changed outside of Spotify; eg. by control knob.
If there is already a solution, please let me know.
Otherwise, consider this as a feature request.
The text was updated successfully, but these errors were encountered: