Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Re: MP3 server with IO::Socket

by Anonymous Monk
on Apr 16, 2003 at 03:00 UTC ( #250765=note: print w/replies, xml ) Need Help??

in reply to Re: MP3 server with IO::Socket
in thread MP3 server with IO::Socket

Further icy headers that winamp looks for, not sure about xmms. just replace your current headers with the below content.
print $socket "ICY 200 OK\r\n"; print $socket "Content-Type: audio/mpeg \r\n"; print $socket "Cache-Control: no-cache \r\n"; print $socket "Pragma: no-cache \r\n"; print $socket "Connection: close \r\n"; print $socket "icy-name: Fuelradio \r\n"; print $socket "icy-genre: Techno \r\n"; print $socket "icy-url: \r\n"; print $socket "icy-notice1:This stream requires Winamp \r\n"; print $socket "icy-notice2:Perl Streamer v0.1a \r\n"; print $socket "icy-metadata: 1 \r\n\r\n";
additionaly you can add
print $socket "icy-metaint:8192\r\n";
althoug my tests with the metaint caused alot of skipping and chirps, maybe someone can shed some light on the proper interval, im sure its different than 8192 since the mp3's are not being decoded and re-encoded within the scope of the app, there just being shoved down the throat. Anyone have ideas on how to do title streaming (i.e. showing what song is playing in the winamp/xmms title bar) maybe a id3 lib for perl??

Replies are listed 'Best First'.
Re: Re: Re: MP3 server with IO::Socket
by Ryszard (Priest) on May 07, 2004 at 08:26 UTC
    Altho' I've not done any structured testing ( and i use XMMS ), I've notices some mp3's titles appear and some dont. I'm taking a guess here, but i think it could be ID3 tag related..

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://250765]
[Corion]: 1nickt: Finding autobox in production would give me pause, yes
[LanX]: efficient survey
[MidLifeXis]: And under MINGW64_NT-6.1 MYHOST 2.6.0(0.304/5/3) 2016-09-09 09:46 x86_64 Msys there seem to be issues with escapes in external build tool calls.
[Corion]: I mean, it's a technical feat it achieves, but... why? ;)
[MidLifeXis]: And it also has the 0.14 version of the tarball in its manifest.
[LanX]: avoiding unreadable brackets
[MidLifeXis]: Although the previous one could be a b0rken PATH, I would need to dig for that.
[thezip]: I've got to go to meetings now. If anyone has further comments regarding Spreadsheet::XLSX deployment to Strawberry Perl 5.24.1, please /msg me -- thanks!
LanX has to go ... plans to crash with a car into a group of pythonistas while screaming "LARRY IS THE GREATEST"
LanX ... darn ... where is my car?

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2017-03-23 17:28 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (291 votes). Check out past polls.