Hi
Here is the C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RGiesecke.DllExport; // You need UnmanagedExports from NuGet Packages by RGiesecke
using WMPLib; // Windows Media Player COM Refernence
namespace AGK_Live_Music
{
public class Class1
{
static WMPLib.WindowsMediaPlayer player = new WMPLib.WindowsMediaPlayer();
[DllExport("PlayMusicFromURL", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
public static void PlayMusicFromURL(string url)
{
player.URL = url;
player.controls.play();
}
[DllExport("SetVolume", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
public static void SetVolume(int volume)
{
player.settings.volume = volume;
}
[DllExport("SetBuffer", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
public static void SetBuffer(int milliseconds)
{
player.network.bufferingTime = 1000;
}
}
}
Now you need commands.txt file
#CommandName,ReturnType,ParameterTypes,Windows,Linux,Mac,Android,iOS,Windows64
PlayMusicFromURL,0,S,PlayMusicFromURL,0,0,0,0,0
SetVolume,0,I,SetVolume,0,0,0,0,0
SetBuffer,0,I,SetBuffer,0,0,0,0,0
and copy the DLL that this builds and the Commands.txt into the PlugsIn\RadioPlayer folder
I added 3 to get you all going
But absolutely add hundreds more if you like, It will play absolutely any station anywhere in the world