|
|
@ -27,6 +27,7 @@ namespace QuickPlay
|
|
|
|
} }
|
|
|
|
} }
|
|
|
|
public async Task Play(IPlayable song)
|
|
|
|
public async Task Play(IPlayable song)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
await mpd.SendAsync(new MpcCore.Commands.Player.Stop());
|
|
|
|
await SetReasonableOptions();
|
|
|
|
await SetReasonableOptions();
|
|
|
|
await mpd.SendAsync(new MpcCore.Commands.Queue.ClearQueue());
|
|
|
|
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.Queue.AddToQueue(song.Metadata.filePath));
|
|
|
|