Created
June 16, 2015 19:24
-
-
Save myrup/9c8ac8f5815f9aef9843 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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