1
0
mirror of https://github.com/ZetaKebab/MpcNET.git synced 2025-07-01 00:37:37 +00:00
2021-10-03 17:53:58 +02:00
2021-10-03 17:53:58 +02:00
2021-10-03 17:53:58 +02:00
2021-10-03 17:53:58 +02:00

MpcNET

Pure .NET Client Library for Music Player Daemon Servers.

Usage

Connection

To create a client for MPD, you must first create a IPEndPoint for the Server with the right IP and Port.

var mpdEndpoint = new IPEndPoint(IPAddress.Loopback, 6600);

Then create a Client and Connect to MPD.

var client = new Mpc(mpdEndpoint);
var connected = await client.ConnectAsync();

The ConnectAsync() method is returning a bool to indicate if the connection was successfully. However, this can be queried directly on the Client also:

var isConnected = client.IsConnected;

and for MPD version, additional property is available:

var mpdVersion = client.Version

To disconnect the Client use the follow method:

await client.DisconnectAsync();

Send Command

API Content

Description
Pure .NET Client Library for Music Player Daemon Servers.
Readme MIT 20 MiB
Languages
C# 100%