|
|
|
@ -25,13 +25,19 @@ namespace QuickPlay
|
|
|
|
|
public float CurrentProgress { get {
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
} }
|
|
|
|
|
public void Play(string songId)
|
|
|
|
|
public async Task Play(IPlayable song)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
await SetReasonableOptions();
|
|
|
|
|
await mpd.SendAsync(new MpcCore.Commands.Queue.ClearQueue());
|
|
|
|
|
await mpd.SendAsync(new MpcCore.Commands.Queue.AddToQueue(song.Metadata.filePath));
|
|
|
|
|
await mpd.SendAsync(new MpcCore.Commands.Player.Play());
|
|
|
|
|
}
|
|
|
|
|
public void SetReasonableOptions()
|
|
|
|
|
public async Task SetReasonableOptions()
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
await mpd.SendAsync(new MpcCore.Commands.Options.SetConsume(true));
|
|
|
|
|
await mpd.SendAsync(new MpcCore.Commands.Options.SetRandom(false));
|
|
|
|
|
await mpd.SendAsync(new MpcCore.Commands.Options.SetRepeat(false));
|
|
|
|
|
await mpd.SendAsync(new MpcCore.Commands.Options.SetSingle(false));
|
|
|
|
|
}
|
|
|
|
|
public MpdPlayer(PlayerConfiguration cfg)
|
|
|
|
|
{
|
|
|
|
|