On Fri, 21 Dec 2007, Duncan Webb wrote:
> Elizabeth Dodd wrote:
> > On Fri, 21 Dec 2007, Duncan Webb wrote:
> >> Elizabeth Dodd wrote:
> >>> On Thu, 20 Dec 2007, Elizabeth Dodd wrote:
> >>>> In Freevo 1.7-4 the mpd plugin crashes looking for OSD_OVERSCAN_LEFT
> >>>> and OSD_OVERSCAN_RIGHT
> >>>>
> >>>> so my will-code-for-food assistant has sorted this out for me
> >>>>
> >>>> We haven't looked at svn to see if this is OK or not in svn
> >>>
> >>> <redface>
> >>> don't trust the "paste as attachment" in kmail
> >>> </redface>
> >>>
> >>> not a real diff, but close enough
> >>>
> >>>>>>>> mpd.py 204 <<<<<<
> >>>
> >>>           # set the multiplier to be used in all screen drawing
> >>> -         self.xmult = float(osd.width  - config.OSD_OVERSCAN_LEFT -
> >>> OSD_OVERSCAN_RIGHT) / 800
> >>> -         self.ymult = float(osd.height - config.OSD_OVERSCAN_TOP -
> >>> OSD_OVERSCAN_BOTTOM) / 600
> >>> +         self.xmult = float(osd.width  - config.OSD_OVERSCAN_LEFT -
> >>> config.OSD_OVERSCAN_RIGHT) / 800
> >>> +         self.ymult = float(osd.height - config.OSD_OVERSCAN_TOP -
> >>> config.OSD_OVERSCAN_BOTTOM) / 600
> >>>
> >>>
> >>> now it has the line wrap problem I was trying to be smart and avoid
> >>
> >> Thanks for this, silly bug.
> >
> > The whole system isn't actually operational yet; there may be more little
> > bugs and sometime over the silly season the report will be ready for the
> > wiki. There may be more bugs to find yet.
>
> I like people to use the tracker to report bugs, this way there is a
> history and they will be reported in the ChangeLog and you can attach a
> unified diff to the report. If you're not sure what I'm talking about
> see:
> http://doc.freevo.org/Contributing?action=show#head-9ec333e919eefa9afe3b19d
>417596d388a209b6d
>
> To submit a new one, follow this link:
> https://sourceforge.net/tracker/?func=add&group_id=46652&atid=446895
>
> Duncan
>
>

Replacement MPD plugin has been coded (for about 2 weeks food).
It is on the tracker as graham put it there last night.




-- 
Is this TERMINAL fun?
Presenting a replacement mpd plugin for Freevo 1.7 svn
Why?
The existing mpd plugin is a unashamed hack from the weather plugin, with the 
weather comments still present.
It is undocumented. It requires another command line program 'mpc' to run. It 
has poor error handling.
Who needs a mpd plugin?
Users with large music collections can use mpd (music player daemon) as a music 
server. Multiple clients can be used so that networked control of mpd is easy. 

The new mpd plugin has been coded from scratch, using python libraries to 
interact with mpd (mpdclient2.py)  It is in the "play music" menu rather than 
the main menu. Another mpd client can be called from within freevo. Each 
command sent to the mpd server is on the menu. 
The ability to add to the mpd playlist from within freevo is also available. 
mpd catalogs and plays music in multiple formats (MP3, Ogg Vorbis, FLAC, AAC, 
and wave files) unlike the current audi album tree plugin.

Things which might be even better

Seeing the name of the track playing rather than its number in the playlist
The ability to dock the track name in the idlebar
An option to show the mpd playlist
The ability to pause the mpd server when freevo wanted the sound card (and not 
crash freevo if there is no mpd server)
Adding a playlist or an entire directory to mpd from within freevo.
adding even more mpd commands to the plugin

Long term questions
Consider whether to use mpd (owned by freevo) as freevo's general music player

Sample operation and installation.
Install mpd and an mpd client.
http://mpd.wikia.com/wiki/Clients
The additional mpd client is intended for easier playlist construction. This 
could be elsewhere on your network. There are lots of clients, but hardly any 
*Windows* clients. 
Configure /etc/mpd.conf. If you are using a network, change from "localhost" 
run mpd --create-db
Copy mpdclient2.py to /usr/lib/python2.4/site-packages/freevo/
Copy mpd_playlist.py and mpd_status.py to 
/usr/lib/python2.4/site-packages/freevo/audio/plugins/
Edit local_conf.py

MPD_SERVER_HOST='localhost'     # the host running the mpd server
MPD_SERVER_PORT='6600'          # the port the server is listening on
MPD_SERVER_PASSWORD=None        # the password to access the mpd server
MPD_MUSIC_BASE_PATH='/mnt/music/'    # the local path to where the music is 
stored, must have trailing slash
MPD_EXTERNAL_CLIENT='/usr/bin/pympd'    # the location of the external client 
you want to use, or None
#   MPD_EXTERNAL_CLIENT_ARGS=''     # arguments to be passed to the external 
client, or None [not in use yet]
plugin.activate('audio.mpd_playlist')
plugin.activate('audio.mpd_status')

If you already have a music management database, some already have mpd clients 
eg jinzora, amarok
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to