|
|
@ -18,16 +18,13 @@ namespace QuickPlay
|
|
|
|
MpcCoreClient mpd;
|
|
|
|
MpcCoreClient mpd;
|
|
|
|
// MpcCore uses strings, so be it
|
|
|
|
// MpcCore uses strings, so be it
|
|
|
|
string mpdIP, mpdPort;
|
|
|
|
string mpdIP, mpdPort;
|
|
|
|
|
|
|
|
public IPlayer.PlayerStatus Status { get; private set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Dictionary<string, IPlayable> Songs { get; private set; }
|
|
|
|
public Dictionary<string, IPlayable> Songs { get; private set; }
|
|
|
|
public string PlayerName { get; private set; }
|
|
|
|
public string PlayerName { get; private set; }
|
|
|
|
public float CurrentProgress { get {
|
|
|
|
public float CurrentProgress { get {
|
|
|
|
throw new NotImplementedException();
|
|
|
|
throw new NotImplementedException();
|
|
|
|
} }
|
|
|
|
} }
|
|
|
|
public bool IsReady { get
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return mpd.IsConnected;
|
|
|
|
|
|
|
|
} }
|
|
|
|
|
|
|
|
public void Play(string songId)
|
|
|
|
public void Play(string songId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
throw new NotImplementedException();
|
|
|
@ -47,6 +44,8 @@ namespace QuickPlay
|
|
|
|
mpdIP = connDetails[0];
|
|
|
|
mpdIP = connDetails[0];
|
|
|
|
mpdPort = connDetails.Length >=2 ? connDetails[1] : "6600"; // XXX: Unneccessary default here...
|
|
|
|
mpdPort = connDetails.Length >=2 ? connDetails[1] : "6600"; // XXX: Unneccessary default here...
|
|
|
|
// Connecting and monitoring remote player is done in ConnectAsync.
|
|
|
|
// Connecting and monitoring remote player is done in ConnectAsync.
|
|
|
|
|
|
|
|
// Therefore, we start disconnected
|
|
|
|
|
|
|
|
Status = IPlayer.PlayerStatus.Disconnected;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public async Task ConnectAsync()
|
|
|
|
public async Task ConnectAsync()
|
|
|
|
{
|
|
|
|
{
|
|
|
|