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: http://www.fuelradio.com \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??
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||