http - IceCast 2.3.2-kh29 server streaming 404 Error -


i loading mp3 stream icecast 2.3.2-kh29 server in android app mediaplayer class. playing works well, stops happen. if see server responses in icystreammeta class id3 tags, there 404 error case. happens in windows 7: firefox , other browsers.

here normal headers (some data ***ed):

    http://***:14534/***.mp3  /***.mp3 http/1.1 host: ***:14534 user-agent: mozilla/5.0 (windows nt 6.1; wow64; rv:22.0) gecko/20100101 firefox/22.0 accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 accept-language: ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3 accept-encoding: gzip, deflate connection: keep-alive  http/1.1 200 ok server: nginx/1.4.1 date: tue, 23 jul 2013 21:22:00 gmt content-type: audio/mpeg transfer-encoding: chunked connection: keep-alive icy-br: 192 ice-audio-info: bitrate=192;samplerate=44100;channels=2 icy-description: mp3 192 kbps icy-genre: *** icy-name: *** icy-pub: 1 icy-url: *** cache-control: no-cache expires: mon, 26 jul 1997 05:00:00 gmt pragma: no-cache 

so, stream plays minute or less, seconds , stops. what's possible reason of 404 error? in other devices there tests stable work. internet speed well. can router cause such things? also, maybe special http request headers needed icecast (and if they're not present, gives 404)? or it's internal server error cases?

so, wireshark: 2973    53.630385000    server's ip 192.168.100.6   tcp 1466    14534 > 59847 [ack] seq=1284017 ack=1 win=63 len=1412 2976    53.636352000    server's ip 192.168.100.6   tcp 1157    14534 > 59847 [psh, ack] seq=1285429 ack=1 win=63 len=1103 2978    53.671606000    server's ip 192.168.100.6   tcp 60  14534 > 59847 [psh, ack] seq=1286532 ack=1 win=63 len=5 2980    53.678606000    server's ip 192.168.100.6   tcp 60  14534 > 59847 [fin, ack] seq=1286537 ack=2 win=63 len=0 

the issue chunked encoding. you're proxying stream through nginx, , nginx "fixing" output compatible http/1.0. don't that.

you can try turning off chunked encoding in nginx config:

chunked_transfer_encoding off 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

node.js - Node - Passport Auth - Authed Post Route hangs on form submission -

Does Firefox offer AppleScript support to get URL of windows? -