Amrykid / UWPShoutcastMSS

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

Radio station throwing 404 #16

Open cyberangel67 opened 6 years ago

cyberangel67 commented 6 years ago

I can't find a solution to this radio station

http://icy.ihrcast.arn.com.au/au_004_icy

I managed to modify the request header to get rid of the 404, but then ended up getting a 400 bad request

Now I am stuck wondering why.

AzureKitsune commented 6 years ago

@cyberangel67 Sorry for the late response. I'll take a look at this tonight.

cyberangel67 commented 6 years ago

Any solution for this yet?

AzureKitsune commented 6 years ago

Not yet. I believe the solution to this problem would be to use httpclient to make the initial http connection and figure out how to gain access to the underlying socket. My http implementation is barebones and I'm pretty sure its not following the RFC completely (#5).

Another theoretical avenue would be to use the Http APIs to create http request message as a string and inject the shoutcast-specific metadata into the string. We can then send that along the socket.

AzureKitsune commented 6 years ago

@cyberangel67 I added the station you specified to the TestApp in the latest commit in master. It seems to work just fine without any modifications. Although the bitrate is a bit low and the audio hitches.

cyberangel67 commented 6 years ago

Interesting then that it works now, but not then.

Also I noticed that it is extremely choppy and static, could this be that it is using a DTS audio format somehow?

And how would I go about changing it to use another audio format?

cyberangel67 commented 6 years ago

And I don't see the song names either

AzureKitsune commented 6 years ago

I'm not doing any transcoding so the only way to change the audio format would be to change the stream you're listening to.

Its also entirely possible that the choppiness is audio metadata being misinterpreted.

cyberangel67 commented 6 years ago

Is the choppiness something that can be fixed?

If I do it through other apps or programs it works fine.

cyberangel67 commented 6 years ago

Also can you tell me if this link is supposed to work

http://ic3ti.scahw.com.au/3fox_128

cyberangel67 commented 6 years ago

I think the choppiness is due to a memory leak or something.

I added about 20 radio stations to your test app.

And Played one, stopped it after a minute and played another and rinse and repeat.

I saw the memory usage in VS keep going up, certain ones will then be choppy. One of two will then make the app totally unresponsive as well. And the only way I can gain control of the app, is to shut it down via VS.

This was one of those stations that forced ended up making the app unresponsive.

http://legacy.scahw.com.au/3mmm_32

Hope this helps.

cyberangel67 commented 6 years ago

Also the ones that are choppy have a bitrate of 33 as well.