Kodi Community Forum
[REQUEST] MPD (Music Player Daemon) client / protocol plugin or script - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=148)
+---- Thread: [REQUEST] MPD (Music Player Daemon) client / protocol plugin or script (/showthread.php?tid=48637)

Pages: 1 2 3


[REQUEST] MPD (Music Player Daemon) client / protocol plugin or script - rtpmatt - 2009-04-09

Just wanted to let everybody know i have just started work yesterday on an mpd client for XBMC.

It's mostly not working yet, but thought I'd let other people check it out.

I haven't tested it on my actual xbox yet, only on XBMC for ubuntu.

EDIT:
haha, and the url is:
http://code.google.com/p/xbmpdc/


- SimFre - 2009-05-12

Sounds very interesting Big Grin I'd be happy to try it out for ya.


[REQUEST] MPD (Music Player Daemon) client / protocol plugin or script? - mots - 2009-09-10

Hey, how about emulating the MPD protocol in XBMC? It would instantly give networked xbmc boxes tons of nice Remotes (for example: sonata, ncmpc), now-playing-widgets etc... I don't really know how hard this would be to implement, but it would be mega hella awesome Big Grin
Cheers,
mots


- mots - 2009-09-13

As nobody else seemed interested in this, I sat down and started writing a python script... I already have a first breakthrough: listing artists and the current playlist work, kinda Big Grin

Image


- tlanfer - 2009-09-13

Had the same idea a couple of weeks ago. Would love to have this too.


- Maxim - 2009-09-13

Would this make XBMC easier to use, maybe more complex? I don't even know what the MDP protocol is, how would it be used? Can you do a mock up?


- topfs2 - 2009-09-13

Another way to implement the relay from MPD to XBMC would be to create an eventclient and httpapi translation.

so MPD client -> MDP Translator -> EventClient Protocol & HttpApi Protocol-> XBMC


- greatant1337 - 2009-09-14

Maxim Wrote:Would this make XBMC easier to use, maybe more complex? I don't even know what the MDP protocol is, how would it be used? Can you do a mock up?

Click on the link in the first post, dude.


- Maxim - 2009-09-14

greatant1337 Wrote:Click on the link in the first post, dude.
I'm just a user, and I don't have time to chase down every lead, dude. Think about the devs' time. This user is lucky because topfs2 is already aware of how the protocol works otherwise this thread would probably get mostly ignored because it doesn't explain anything about how this MDP protocol could be incorporated into the XBMC or how it could be beneficial to the users.


- mots - 2009-09-14

Topfs2 Wrote:Another way to implement the relay from MPD to XBMC would be to create an eventclient and httpapi translation.

so MPD client -> MDP Translator -> EventClient Protocol & HttpApi Protocol-> XBMC

This is pretty much what my python-script does, it's not an xbmc-python-script, but just a "general python script", if you get what I'm saying Big Grin

Maxim Wrote:I'm just a user, and I don't have time to chase down every lead, dude. Think about the devs' time. This user is lucky because topfs2 is already aware of how the protocol works otherwise this thread would probably get mostly ignored because it doesn't explain anything about how this MDP protocol could be incorporated into the XBMC or how it could be beneficial to the users.
Thanks for your arrogance, but I'm the guy incorporating the MPD protocol into xbmc, so really, read posts before you comment on them


- topfs2 - 2009-09-14

mots Wrote:This is pretty much what my python-script does, it's not an xbmc-python-script, but just a "general python script", if you get what I'm saying Big Grin

Oh nice, thats a nice approach, would definatly be usable to tie in with MPD that way!


- mots - 2009-09-14

Wow, approval from an xbmc dev Big Grin

Small update: Nearly everything related to the currently playing track works now (play, pause, prev, next, properly showing the status and the pos in the playlist etc...)

Image

I have no idea why sonatas progressbar is messed up, though...


- topfs2 - 2009-09-14

I can even say that I'm usually on IRC so if you have any troubles with httpapi and / or eventclient don't be shy pinging me.


- mots - 2009-09-17

I'll be uploading a first alpha version to github soon...
What works so far:
  • file based navigation
  • adding files to the playlist
  • removing items from the playlist
  • nowplaying-info
  • play/pause/next/prev
  • volume
  • listing artists

what doesn't:
  • metadata-based navigation (except listing artists, which isn't particularly useful) (won't work until I finally do some regex :/)
  • reordering the playlist (is this even possible in xbmc?)
  • lots of other things I can't currently think of...

Also, the code is quite a mess right now, the SQL queries are probably horrible (I don't really know sql, I was just guessing around Tongue) and it's a bit slow... Oh, and it's only really optimized to sonata, so don't be surprised if other clients don't work...

Image


- spiff - 2009-09-17

reordering is possible in the ui but i'm not sure you have api calls to access it