You are not logged in.
Pages: 1
I can't seem to find the rythmbox-client command. I have the man page, but no command. A locate turns up nothing. Am I just blind, or is this no longer included with rhythmbox?
Offline
Give what you have. To someone, it may be better than you dare to think.
Offline
Ah, okay. Thanks.
Offline
Hey @whackedspinach , I'm a new and inexperienced linux user, could you explain me what's the meaning of what we see in the link above.... thanks
Offline
Hey @whackedspinach , I'm a new and inexperienced linux user, could you explain me what's the meaning of what we see in the link above.... thanks
it means that rhythmbox developers (a.k.a upstream) dropped it
Give what you have. To someone, it may be better than you dare to think.
Offline
How are we supposed to control rhythmbox media through terminal anymore? Like binding multimedia keys to rhythmbox-client -pause??
Offline
SiegeMachine > use dbus mpris API . From the command line :
dbus-send --type=method_call --print-reply --dest=org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
Python code to do the same thing :
import dbus
session_bus = dbus.SessionBus()
player = session_bus.get_object('org.mpris.MediaPlayer2.rhythmbox','/org/mpris/MediaPlayer2')
iface = dbus.Interface(player, dbus_interface='org.mpris.MediaPlayer2.Player')
iface.Next()
Replace Next with Previous or PlayPause, etc... (see http://www.mpris.org/2.1/spec/Player_Node.html)
I believe in a world I can and do understand. A rational universe, explained through rational means.
Offline
Does anyone know if this method can be used to change the song rating in rhythmbox? That is what I used rhythmbox-client for.
I looked over the page http://www.mpris.org/2.1/spec/Player_Node.html but the only thing I saw about rate was the playback speed of the song.
Offline
SiegeMachine > use dbus mpris API . From the command line :
dbus-send --type=method_call --print-reply --dest=org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
Python code to do the same thing :
import dbus session_bus = dbus.SessionBus() player = session_bus.get_object('org.mpris.MediaPlayer2.rhythmbox','/org/mpris/MediaPlayer2') iface = dbus.Interface(player, dbus_interface='org.mpris.MediaPlayer2.Player') iface.Next()
Replace Next with Previous or PlayPause, etc... (see http://www.mpris.org/2.1/spec/Player_Node.html)
Very useful, thanks!
Let me ask you something. I'm beginning to understand DBus behaviour but I don't know how to read some properties yet. How could I access the metadata of the song which is currently playing? I'm interested in the title, artist and duration field.
Thanks in advance!
Offline
flight243 >I 've found this http://code.google.com/p/clementine-player/wiki/MPRIS
It uses qdbus and it is easily adaptable to any mpris2 compatible player
qdbus org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata
In python :
#!/usr/bin/python2
import dbus
session_bus = dbus.SessionBus()
player =session_bus.get_object('org.mpris.MediaPlayer2.rhythmbox','/org/mpris/MediaPlayer2')
iface = dbus.Interface(player,dbus_interface='org.freedesktop.DBus.Properties')
print(iface.Get("org.mpris.MediaPlayer2.Player","Metadata").get(dbus.String(u'xesam:artist'))[0] + " - "+ iface.Get("org.mpris.MediaPlayer2.Player","Metadata").get(dbus.String(u'xesam:title')))
iface.Get returns a python dictionnary containing the metadata
Last edited by LeCrayonVert (2011-08-18 19:08:51)
I believe in a world I can and do understand. A rational universe, explained through rational means.
Offline
Btw I've created a package for a complete rewrite of rhythmbox-client, see https://bbs.archlinux.org/viewtopic.php?pid=979117
I believe in a world I can and do understand. A rational universe, explained through rational means.
Offline
Pages: 1