First POC for a radio browser

This commit is contained in:
2021-10-01 02:24:18 +02:00
parent 4d180871ca
commit fbb65a039a
6 changed files with 166 additions and 7 deletions

View File

@ -12,6 +12,7 @@ using System.Windows.Threading;
using MpcNET;
using MpcNET.Commands.Database;
using MpcNET.Commands.Playback;
using MpcNET.Commands.Queue;
using MpcNET.Commands.Status;
using MpcNET.Message;
using MpcNET.Types;
@ -439,5 +440,14 @@ namespace unison
_currentVolume = 0;
SetVolume(_currentVolume);
}
public void ClearQueue() => SendCommand(new ClearCommand());
public void PlayCommand() => SendCommand(new PlayCommand(0));
public void AddSong(string Uri)
{
Debug.WriteLine("AddCommand path: " + Uri);
SendCommand(new AddCommand(Uri));
}
}
}