eonpatapon/gnome-shell-extensions-mediaplayer — Issue #35: Can't set the volume to 0 or 1 with the slider
Author: eonpatapon
Created: 2011-12-16 08:32:45+00:00
State: open

When trying to set the volume to 0 or 1, JS send an int value even the value is cast to float with : parseFloat(value)
Since the dbus interface only accept double type (http://www.mpris.org/2.1/spec/Player_Node.html#Property:Volume) it doesn't work.

method call sender=:1.78 -> dest=org.mpris.MediaPlayer2.banshee serial=628 path=/org/mpris/MediaPlayer2; interface=org.freedesktop.DBus.Properties; member=Set
string "org.mpris.MediaPlayer2.Player"
string "Volume"
variant int32 0

With a value beetween 0 and 1, all is ok :

method call sender=:1.78 -> dest=org.mpris.MediaPlayer2.banshee serial=666 path=/org/mpris/MediaPlayer2; interface=org.freedesktop.DBus.Properties; member=Set
string "org.mpris.MediaPlayer2.Player"
string "Volume"
variant double 0.387754