Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2091 closed defect (fixed)

can't play stream behind proxy

Reported by: salmon.ronan@… Owned by: reimar
Priority: normal Component: streaming
Version: unspecified Severity: normal
Keywords: Cc: salmon.ronan@…
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

mplayer won't play some streams, eg http://mp3.live.tv-radio.com/nrj_rock/all/nrj_161510.mp3

here is the trace of the following call : [~]$ mplayer http_proxy://10.20.1.1:3128/http://mp3.live.tv-radio.com/nrj_rock/all/nrj_161510.mp3
MPlayer SVN-r34652-4.7.0 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing http_proxy://10.20.1.1:3128/http://mp3.live.tv-radio.com/nrj_rock/all/nrj_161510.mp3.
Resolving 10.20.1.1 for AF_INET6...

Couldn't resolve name for AF_INET6: 10.20.1.1
Connecting to server 10.20.1.1[10.20.1.1]: 3128...
Resolving 95.81.146.2 for AF_INET6...

Couldn't resolve name for AF_INET6: 95.81.146.2
Connecting to server 95.81.146.2[95.81.146.2]: 80...

15:45:01.950070 IP 10.20.1.2.45965 > 10.20.1.1.squid: Flags [S], seq 1687890
15:45:01.950386 IP 10.20.1.1.squid > 10.20.1.2.45965: Flags [S.], seq 292160
15:45:01.950400 IP 10.20.1.2.45965 > 10.20.1.1.squid: Flags ., ack 1, win
15:45:01.950488 IP 10.20.1.2.45965 > 10.20.1.1.squid: Flags [P.], seq 1:177,
15:45:01.950796 IP 10.20.1.1.squid > 10.20.1.2.45965: Flags ., ack 177, wi
15:45:01.952099 IP 10.20.1.1.squid > 10.20.1.2.45965: Flags [P.], seq 1:644,
15:45:01.952146 IP 10.20.1.2.45965 > 10.20.1.1.squid: Flags ., ack 644, wi
15:45:01.952342 IP 10.20.1.2.45965 > 10.20.1.1.squid: Flags [F.], seq 177, a
15:45:01.952480 IP 10.20.1.2.47855 > 95.81.146.2.http: Flags [S], seq 252681
15:45:01.952518 IP 10.20.1.1.squid > 10.20.1.2.45965: Flags [F.], seq 644, a
15:45:01.952527 IP 10.20.1.2.45965 > 10.20.1.1.squid: Flags ., ack 645, wi
15:45:01.952925 IP 10.20.1.1.squid > 10.20.1.2.45965: Flags ., ack 178, wi
15:45:02.953652 IP 10.20.1.2.47855 > 95.81.146.2.http: Flags [S], seq 252681
15:45:04.955636 IP 10.20.1.2.47855 > 95.81.146.2.http: Flags [S], seq 252681

mplayer, at some stage, is no longer talking to/using the proxy server.

I've tried with other streams, and some do work like this one :
mplayer http_proxy://10.20.1.1:3128/http://ouifm.ice.infomaniak.ch/ouifm2.mp3

Change History (5)

comment:1 by salmon.ronan@…, 12 years ago

forgot to mention that http_proxy is set as well:
[~]$ echo $http_proxy
http://10.20.1.1:3128

comment:2 by salmon.ronan@…, 12 years ago

Cc: salmon.ronan@… added

comment:3 by reimar, 12 years ago

I suspect that is related to the 302 redirect and it will work if you specify the redirect target manually (http://95.81.147.3/nrj_rock/all/nrj_161510.mp3).

comment:4 by reimar, 12 years ago

Resolution: fixed
Status: newclosed

Should be fixed in SVN r35207.

comment:5 by salmon.ronan@…, 12 years ago

I confirm that this issue is fixed in SVN
Thanks.

Note: See TracTickets for help on using tickets.