Amrykid / UWPShoutcastMSS

A library for connecting to Shoutcast in Windows 10 UWP applications.
MIT License
14 stars 3 forks source link

[TODO] Use HttpClient for negotiating connections #5

Open AzureKitsune opened 7 years ago

AzureKitsune commented 7 years ago

The library should use an actual HTTP library instead of my hack to get the connection going. This will also handle certain streams that send down weird Unicode characters that currently kill the library (see #7).

AzureKitsune commented 7 years ago

I experimented with getting a connection going using Windows.Web.HttpClient and it worked half of the time. The problem is HttpClient is inconsistent when it's retrieving only the headers (and not the content or else it would download the stream indefinitely).

Sometimes the headers will be buffered/parsed by the time it returns and sometimes they won't be (leaving us without anything we can do).

I might have to write a real Http Client for usage in this library but I don't want to reinvent the wheel in this case.