aMSN Forums
May 22, 2013, 08:46:41 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
   Home   Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: rhythmbox / music plugins  (Read 15627 times)
gore_k
Newbie

Offline Offline

Posts: 4


View Profile
« on: June 28, 2006, 02:59:08 pm »

I've made a quick hack of the music plugin to add support for rhythmbox.
basically it is just the totem scrip slightly modified to retrieve info from the 'rhythmbox-client' program.
I've also added an entry in the configure menu.
the 2 files are located here : http://www.filelodge.com/files/hdd9/213287/infoRhythmbox.zip
Install amsn music-plugin;then extract the zip and move the two files in your music-plugin directory.
Logged
Phil
Administrator
Super Power User
*****
Offline Offline

Posts: 653


View Profile
« Reply #1 on: June 28, 2006, 05:26:45 pm »

Hum...
Sorry but Rhythmbox support is already added...
In fact you should enable automatic updates in Preferences > Advanced > Others
Logged

Phil

AMsn is great, and it will be greater :wink:
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #2 on: June 28, 2006, 05:46:14 pm »

what is the difference between rythmbox and rythmbox-client ?
gore_k code :
Code:
rhythmbox-client --print-playing

music plugin's code
Code:
rhythmbox --print-playing --print-playing-artist --print-playing-path --print-song-length --no-focus


is the rythmbox-client automatically setting the '-no-focus' for example ?
Logged

KaKaRoTo
gore_k
Newbie

Offline Offline

Posts: 4


View Profile
« Reply #3 on: June 29, 2006, 12:06:15 pm »

sorry I obviously miss something.
I already check the preferences/advanced/others/autoupdate box but it didn't seems to help.

And yes I'm pretty sure that the rhythmbox-client command line sets the --no-focus option by default.

I am running rhythmbox v.0.9.5 and when I use the music plugin's code :
 "rhythmbox --print-playing --print-playing-artist --print-playing-path --print-song-length --no-focus"
it just raise my rhythmbox window and return no info.
....

gore_K

and YES amsn is great ... no doubt about that.
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #4 on: June 29, 2006, 06:54:41 pm »

what happens if you put rythmbox-client instead of rythmbox ?
also, is rythmbox-client ALWAYS installed with rythmbox ?
Logged

KaKaRoTo
gore_k
Newbie

Offline Offline

Posts: 4


View Profile
« Reply #5 on: June 30, 2006, 12:09:37 pm »

.... OK after some builds; it seems that  it 's only a 0.9.5 feature and the rhythmbox-client is the dbus remote control.
I looked in the 0.9.0 and 0.9.5 archives from http://www.gnome.org/projects/rhythmbox/.
the versions on http://rhythmbox.sf.net are only 0.8.x and do not include the dbus 'bindings'.
from rhythmbox site :

" Optional requirements for additional functionality

    * DBus 0.35 - allow other applications to control and query Rhythmbox
    * HAL 0.2 - Removable media (e.g. portable audio player) support ...
    ..............."

So you need to have dbus installed and running if you expect to build or use the dbus remote(think you need the "use-session-dbus" option in your X11/Xorg Xsession.option).

rhythmbox-client application options :
 --debug
  --no-start                    Don't start a new instance of Rhythmbox
  --quit                          Quit Rhythmbox
  --no-present                Don't present an existing Rhythmbox window
  --hide                         Hide the Rhythmbox window
  --next                         Jouer le titre suivant
  --previous                   Jouer le titre précédent
  --play                         Reprendre la lecture si une pause est en cours
  --pause                       Mettre en pause si une lecture est en cours
  --play-pause                Basculer le mode lecture/pause
  --play-uri=URI to play     Play a specified URI, importing it if necessary
  --enqueue                    Add specified tracks to the play queue
  --clear-queue                Empty the play queue before adding new tracks
  --print-playing             Print the title and artist of the playing song
  --print-playing-format      Print formatted details of the song ( needs path to a mp3/ogg file )

I can not pass all the rhythmbox options from your command line (ie: --print-playing --print-playing-artist --print-playing-path --print-song-length --no-focus).
The only option rhythmbox-client understands from the whole is --print-playing.


gore_K
Logged
billiob
Administrator
Super Power User
*****
Offline Offline

Posts: 1352


View Profile
« Reply #6 on: June 30, 2006, 09:52:49 pm »

Just a guess : have you updated the music from svn ?
Logged
gore_k
Newbie

Offline Offline

Posts: 4


View Profile
« Reply #7 on: July 01, 2006, 11:02:09 am »

not in the first place; but yes I try to use the svn music plugin.
first I had to edit the inforhythmbox script because my pidof is located in  /bin and not in /sbin.
I launch amsn; configure the pugins to use rhythmbox and refresh each 5s and as a result my rhythmbox window jump out of the notification area each 5s and no info is returned to amsn.
sorry.
the music plugin expect what version of rhythmbox ?

g_K
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #8 on: July 04, 2006, 08:26:43 pm »

if you have a different behavior in old versions, we could have a rhythmbox 0.8x and rhythmbox 0.9x configs for music plugin, as if those were 2 different players...
Logged

KaKaRoTo
Fabioamd87
Super Power User
**
Offline Offline

Posts: 467



View Profile
« Reply #9 on: November 11, 2006, 02:04:47 pm »

i use rhythmbox 0.9.6 what i must do for show music?
Logged
billiob
Administrator
Super Power User
*****
Offline Offline

Posts: 1352


View Profile
« Reply #10 on: November 12, 2006, 11:29:24 am »

try this one : http://rapidshare.com/files/1928006/music.tar.bz2.html
tell me if it's working or not.
Logged
Fabioamd87
Super Power User
**
Offline Offline

Posts: 467



View Profile
« Reply #11 on: November 12, 2006, 04:09:44 pm »

the site tell me:
You have requested the file music.tar.bz2 (402 KB). This file has been downloaded 16 times already.

Too many users downloading right now. Please try again later or get a PREMIUM-Account

can you send me it by mail please?

edit: now tell me error 404
Logged
billiob
Administrator
Super Power User
*****
Offline Offline

Posts: 1352


View Profile
« Reply #12 on: November 12, 2006, 04:20:09 pm »

try again Smiley
Logged
fabs0028
Newbie

Offline Offline

Posts: 6


View Profile
« Reply #13 on: November 12, 2006, 05:24:14 pm »

Hello
here is an improved version of the inforhythmbox
there is no more problem with pidof as i get the path from the system (which )

I check if rhythmbox-client exists and i  use it instead of rhythmbox if it does exist
Here is the newscript

Code:

#! /bin/bash

PIDOF=`which pidof`
CLIENT=`which rhythmbox-client`
PID=`$PIDOF -s rhythmbox`

if [ "x$PID" = "x" ]
then
        echo ""
        echo ""
        echo ""
        echo -1
else
        if [ "x$CLIENT" = "x" ]
        then
                rhythmbox --print-playing --print-playing-artist --print-playing-path --print-song-length --no-focus
        else
                rhythmbox-client --print-playing
        fi
fi
exit 0
Logged
Fabioamd87
Super Power User
**
Offline Offline

Posts: 467



View Profile
« Reply #14 on: November 12, 2006, 06:23:55 pm »

great, will be implemented in the ufficial plugin?

Quote from: "billiob"
try this one : http://rapidshare.com/files/1928006/music.tar.bz2.html
tell me if it's working or not.

not work
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!