Open cyberangel67 opened 6 years ago
@cyberangel67 Sorry for the late response. I'll take a look at this tonight.
Any solution for this yet?
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.
@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.
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?
And I don't see the song names either
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.
Is the choppiness something that can be fixed?
If I do it through other apps or programs it works fine.
Also can you tell me if this link is supposed to work
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.
Also the ones that are choppy have a bitrate of 33 as well.
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.