Skip to content

Latest commit

 

History

History
executable file
·
53 lines (43 loc) · 1.57 KB

README.md

File metadata and controls

executable file
·
53 lines (43 loc) · 1.57 KB

JavaMPD

Maven Central Coverage Maintainability Rating

SonarCloud

Java API for controlling the Music Player Daemon (MPD)

Maven Dependency:

<dependency>
  <groupId>com.inthebacklog</groupId>
  <artifactId>javampd</artifactId>
  <version>7.3.0</version>
</dependency>

Snapshot repo:

<repositories>
    <repository>
        <id>oss.sonatype.org-snapshot</id>
        <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
        <releases>
            <enabled>false</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
</repositories>

To connect to mpd using the defaults of localhost and port 6600

MPD mpd = MPD.builder().build();

or build to your environment

MPD mpd = MPD.builder()
        .server("yourserver")
        .port(yourport)
        .password(yourpassword)
        .build();

Full documentation can be found here