Page 1 of 1

VLC Issues with DBUS - Onegai

Posted: 05 Oct 2016 10:19
by nonzyro
Hi, it's me again, the bitching superuser. I've given up on trying to use the rc interface (because it's broken and nobody has addressed my concerns about it).
I'm looking into DBUS now, but it seems VLC is not MPRIS-compliant. PlayPause works, Seek works, but Rate (and related) don't and neither does Volume. I understand Rate not being top of the agenda because it isn't high-demand, but Volume!? WTH!? Everyone uses that feature. It is needed.

See below details:

RATE:

Code: Select all

dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.vlc /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Rate double:"0.5" Error org.freedesktop.DBus.Error.UnknownMethod: Method "Rate" with signature "d" on interface "org.mpris.MediaPlayer2.Player" doesn't exist
VOLUME:

Code: Select all

dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.vlc /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Volume double:"0.5" Error org.freedesktop.DBus.Error.UnknownMethod: Method "Volume" with signature "d" on interface "org.mpris.MediaPlayer2.Player" doesn't exist
SEEK (working fine)

Code: Select all

dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.vlc /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Seek int64:"-10000000" method return sender=:1.290 -> dest=:1.306 reply_serial=2
It looks like this has yet to be implemented (unless I'm doing something wrong). I've had a look at the VLC Wiki and that's no help because most of it's WIP. Anyway, could someone please tell me what the story is here? Is VLC going to be fully MPRIS-compliant? Does it have its own special DBUS interface? Is DBUS support on hiatus? Enlighten me please.

Please can somebody bother to get back to me on this one, even is it's outside the forum (my Twitter handle is @nonzyro)

Re: VLC Issues with DBUS - Onegai

Posted: 05 Oct 2016 13:00
by RĂ©mi Denis-Courmont
Nah. Volume and Rate player properties are both supported fine. You're doing it wrong.

Re: VLC Issues with DBUS - Onegai

Posted: 05 Oct 2016 15:16
by nonzyro
You're doing it wrong.
Could you give me an example, I'm fairly new to DBUS. Explanation would be good to. Thanks in advance.

Re: VLC Issues with DBUS - Onegai

Posted: 01 Feb 2017 02:36
by bll
In case anyone runs into this,
I just tried this and it works:

dbus-send --print-reply --session \
--dest=org.mpris.MediaPlayer2.vlc \
/org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Set \
string:org.mpris.MediaPlayer2.Player string:Rate variant:double:1.3