ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

Server not sending down the correct response.

Open cyberjaime45 opened this issue 10 years ago • 1 comments

Firstly, I want to thank for this awesome library. I just integrated to my project. Its actually replacing another library I was using.

My app offers hundred of selected online radios that stream live using shoutcast, icecast among others. I noticed a great number of radios stations stopped playing when using this library on devices running android 4 & < 5. Lollipop and Marshmallow doesn't seem to have that problem. While debugging I noticed that response from the server was -1. (not sure if this means that server failed to send any response at all)

So I changed the validation response code a bit (responseCode >= 1 && responseCode < 200 || responseCode > 299). With this change all stations are playing audio. I know this is not best way to fix this issue, but I don't have access to servers. Just wanted to share my issues.

cyberjaime45 avatar Jun 21 '16 00:06 cyberjaime45

I think this is because the server you're hitting is using ICY rather than HTTP. There are various related issues here. Thanks for sharing!

ojw28 avatar Aug 23 '16 20:08 ojw28