MPRIS interface doesn't support Volume
Categories
(Core :: Widget: Gtk, enhancement, P3)
Tracking
()
People
(Reporter: nicolas.fella, Unassigned)
References
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Falkon/3.1.99 Chrome/83.0.4103.122 Safari/537.36
Steps to reproduce:
Try to read or write the volume property of the MPRIS interface, e.g. by
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.firefox.instance4711 /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Set string:org.mpris.MediaPlayer2.Player string:Volume variant:double:1
Exact command varies of course.
Firefox 80.0.2 on Manjaro Linux
Actual results:
"Error org.gtk.GDBus.UnmappedGError.Quark._g_2dio_2derror_2dquark.Code0: org.mpris.MediaPlayer2.Player:Volume setting is not supported"
Expected results:
Volume of the playback is set to 100%
Reporter | ||
Comment 1•4 years ago
|
||
The Volume property is defined in https://specifications.freedesktop.org/mpris-spec/latest/Player_Interface.html#Simple-Type:Volume
Comment 2•4 years ago
|
||
Im not sure if this was meant as a defect or an enhancement but maybe someone from our dev team can reproduce it on the Manjaro Linux OS.
Also I think the severity for this issue should be set to S4.
Updated•4 years ago
|
I can confirm that it doesn’t appear possible to control the volume using mpris. Could this feature be enabled?
Comment 4•2 years ago
|
||
Patches are welcome here.
This is still still reproducible for Ubuntu 22.04/Firefox 114.0(64-bit), Play/Pause call works, but Reading Volume fails.
$ busctl --user call org.mpris.MediaPlayer2.firefox.instance185793 /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player Pause
$ busctl --user call org.mpris.MediaPlayer2.firefox.instance185793 /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player Play
$ busctl get-property --user org.mpris.MediaPlayer2.firefox.instance185793 /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player Volume
Failed to get property Volume on interface org.mpris.MediaPlayer2.Player: /org/mpris/MediaPlayer2.org.mpris.MediaPlayer2.Player Volume is not supported
Description
•