Java MPD

NEWS
30 December 2010

Release 4.0

See the Wiki for maven details
25 April 2010

Release 3.2
14 April 2010

Release 3.1
2 February 2010

Moved to google code.
18 November 2005

Finally created this webpage.


  bjj@thejavashop.net

Welcome

JavaMPD is a 100% Java API used to communicate with the Music Player Daemon(MPD). Its primary use will be for others to develop clients using this library to communicate with the MPD to manage playlists and play music files (MP3, Ogg Vorbis, FLAC, AAC, Mod, and WAV files).

JavaMPD communicates with MPD via TCP/IP allowing the server to be controlled remotely by the client. The development originated when creating Bill's Jammin' Jukebox (check it out!) and stumbling across MPD when researching the possibility of a remotely controlled player. I quickly realized I needed to abstract the interface and voila, here's this page. Please contact me if you decide to use JavaMPD and, as I'm sure you will, let me know of any bugs you encounter so they can be quickly :-þ corrected.

You will find using JavaMPD fairly simple and straightforward. See my examples page to get started or check out the javadocs page for full documentation.

If you are interested the maven site can be found here.

I've found MPD quite solid and feature filled. I'm running it on an old and slow (P133) slackware box with a fairly large collection (25000+) of mp3s without issue. In addition, the installation is straightforward for anyone with minimal linux experience.

Here are some features of MPD (stolen straight from their website):

  • Plays MP3, Ogg Vorbis, FLAC, MP4/AAC, Mod, and wave files
  • Remotely control MPD over a network (IPv4 and IPv6 supported)
  • Play MP3 and Ogg Vorbis streams
  • Easy to Install
  • Stores ID3 (id3v1 and id3v2) tag information (MP3s, FLAC's, and AAC's)
  • Stores Vorbis Comments information (Ogg's and FLAC's)
  • Stores MP4 metadata information (MP4/AAC's)
  • ID3/Vorbis information can be searched
  • Easy to import new songs
  • Buffer support for playback (prevents skipping due to high load or network latency)
  • Gapless playback (great for live albums)
  • Crossfading support
  • Seeking support
  • Save, Load, and Manage Playlists (in m3u format)
  • Volume control (OSS, Alsa, and software mixers)
  • Wide range of audio devices supported (OSS, Alsa, Sun, esd, arts, and more)
  • Minimal hardware requirements
  • Tested on Linux, FreeBSD, OpenBSD, NetBSD, Solaris, and HPUX
Last Update: 2 February 2010