Hi Carl,
Pardon the top post.
Check out Apache::Mp3 by Lincoln Stein, found here:
http://www.cpan.org/modules/by-authors/Lincoln_D_Stein/
I had it up and working for a few days.
hth,
Mark Pryor
ICQ 64329574
Pgp KeyID: 0x1A966EC5
----- Original Message -----
From: Carl Campbell <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 12:24 PM
Subject: Problems 'serving' mp3 files
> I am trying to "serve" (or stream?) a MP3 file, using my web server, to a
> requesting client. The idea is to create a 'jukebox' type of CGI
> application, for my kids & myself. The problem is that, I am unable to do
> so (I keep getting Internal Server Errors). I am using the following
> script, which is a modified version of something that appeared in this very
> list, sometime ago:
>
>
> #c:/perl/bin/perl.exe -w
> print "HTTP/1.0 200 OK\n";
> print "Content-type: audio/x-mpeg\n\n";
> $IN = "d:\\mp3\\test.mp3";
> open(DATA, "<$IN");
> binmode STDOUT;
> while(read(\*DATA, $content, 1024)) {
> print $content;
> }
> close(DATA);
> exit;
>
> When I run this from the command-line, I have no problems. The way I
> understand this is that, the web server sends the 'header' portion and
> proceeds to send the MP3 file in 'packets'. In turn, the client's web
> browser, receives the headers and sends the stream of data to the 'helper
> application' (in my case, it is winamp). But, all I get is the ugly error
> message described above.
>
> Can someone explain why that isn't working or, maybe, shed some light on how
> this should be done?
>
> I am using Apache 1.3.22. For now, it is being hosted on a Win2K box and
> later, I plan to migrate to a Linux box. So, hopefully, whatever comes out
> fo this discussion, can be used used in the Linux/Apache setup.
>
> Thanks in advance,
>
>
> -Carl
>
> _______________________________________________
> Perl-Win32-Web mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs