You are not logged in.

#1 2011-05-29 08:09:34

whackedspinach
Member
From: Bristol, IL
Registered: 2010-08-30
Posts: 20
Website

rhythmbox-client, where did you go?

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

#2 2011-05-29 08:47:45

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: rhythmbox-client, where did you go?


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2011-05-30 03:43:00

whackedspinach
Member
From: Bristol, IL
Registered: 2010-08-30
Posts: 20
Website

Re: rhythmbox-client, where did you go?

Ah, okay.  Thanks.

Offline

#4 2011-06-14 18:56:47

gilcu3
Member
Registered: 2011-04-12
Posts: 10

Re: rhythmbox-client, where did you go?

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

#5 2011-06-14 19:13:18

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: rhythmbox-client, where did you go?

gilcu3 wrote:

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

#6 2011-06-19 18:29:41

SiegeMachine
Member
Registered: 2009-03-26
Posts: 157

Re: rhythmbox-client, where did you go?

How are we supposed to control rhythmbox media  through terminal anymore? Like binding multimedia keys to rhythmbox-client -pause??

Offline

#7 2011-06-22 17:17:08

LeCrayonVert
Member
Registered: 2010-09-01
Posts: 134

Re: rhythmbox-client, where did you go?

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

#8 2011-07-13 13:52:08

computerinfo21
Member
Registered: 2011-07-13
Posts: 1

Re: rhythmbox-client, where did you go?

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

#9 2011-08-15 11:35:04

flight243
Member
From: Barcelona, Spain
Registered: 2010-05-06
Posts: 8

Re: rhythmbox-client, where did you go?

LeCrayonVert wrote:

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

#10 2011-08-18 18:46:41

LeCrayonVert
Member
Registered: 2010-09-01
Posts: 134

Re: rhythmbox-client, where did you go?

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 wink

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

#11 2011-08-20 14:02:06

LeCrayonVert
Member
Registered: 2010-09-01
Posts: 134

Re: rhythmbox-client, where did you go?

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

Board footer

Powered by FluxBB