[MPlayer-dev-eng] [PATCH] Selectable User-Agent for HTTP transfers
Per Wigren
wigren at home.se
Tue Oct 14 22:02:21 CEST 2003
This patch adds the option -user-agent for HTTP-streaming. It is needed
for the 100s of radiostations hosted by http://www.surfernetwork.com and
I'm sure there are others.
A bunch of the SurferNetwork's stations can be found at
http://www.web-radio.com, the symbol "(SN)". SN uses a custom player
which uses encrypted streams, but reading the information they say they
also support iTunes on MacOS.. After some investigation I found that you
get an unencrypted MP3-stream if you connect to
http://rd1.surfernetwork.com:443/call-id/bitrate and send the header
"User-Agent: iTunes/4.0 (Macintosh; N; PPC)".
Apply this patch and you can listen to the streams like this:
$ mplayer http://rd1.surfernetwork.com:443/buzz/24 -user-agent
"iTunes/4.0 (Macintosh; N; PPC)"
for the station with call-id "buzz", bitrate 24.
I hope to see this in 1.0! It's a very small and simple patch and may be
needed for more streams than SN's!
Regards,
Per Wigren
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mplayer-user-agent.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20031014/3eccf57c/attachment.txt>
More information about the MPlayer-dev-eng
mailing list