Xamarin Android C# play audio stream (online radio)
问题 I have a URL of online-radio and I'd like to play it. So, I've done it this way: reading stream and writing it to byte array and playing it with audioTrack class. Here's the code: private static async Task Play() { using (WebClient wcDownload = new WebClient()) { // Create a request to the file we are downloading WebRequest webRequest = (HttpWebRequest)WebRequest.Create("http://media.vmariel.ru:8000/puls"); // Set default authentication for retrieving the file webRequest.Credentials =