Skip to content

Instantly share code, notes, and snippets.

@myrup
Created June 16, 2015 19:24
Show Gist options
  • Save myrup/9c8ac8f5815f9aef9843 to your computer and use it in GitHub Desktop.
Save myrup/9c8ac8f5815f9aef9843 to your computer and use it in GitHub Desktop.
static void Main(string[] args)
{
var file = "http://m.radiofollow.me:8000/live192";
var handles = new List<IntPtr>();
var rand = new Random();
for (int i = 0; i < 10; i++)
{
var handle = LibMpv.Create();
handles.Add(handle);
LibMpv.Initialize(handle);
LibMpv.Command(handle, "loadfile " + file);
}
//lucky if we make it here
while (true)
{
foreach (var handle in handles)
LibMpv.Command(handle, "loadfile " + file);
Thread.Sleep(500 + rand.Next(15000));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment