I’m wondering how to detect the failure of a mediacaster stream while it’s being played, or even just the failure to connect up initially. I’ve tried the “addMediaCasterListener” method on the application object, but nothing catches it. I can see in the logs this:
Successful connection for mediacaster: 2 - - -
ShoutCastDecoder.checkHeader[mystream.stream]: HTTP response: 404
The first line is from the class I’m using to detect connections etc for the listener, the second is from some internal class I guess. As you can see, the connection success is firing but the HTTP response is 404… How do I grab that?
More importantly though, I need to know when a mediacaster stream fails part way through. Any ideas?