[Xitami] Streaming Video

Gregory Hart xitami@lists.xitami.org
Thu, 25 Apr 2002 18:15:22 -0700


I quickly tested it and this should work:

#!/usr/local/bin/perl

$forminfo = $ENV{'QUERY_STRING'};
$forminfo =~ s/%([0-9a-fA-F][0-9a-fA-F])/pack("C", hex($1))/eg;

print "Content-type: audio/mpeg\n\n";
print "$forminfo\n";

Just call the script like this: script.pl?http://www.domain.com/audio_file.mp3. If you want a video file, just change the content
type to video/mpeg.
-Greg

----- Original Message -----
From: Michael <michael@alft.net>
To: <xitami@lists.xitami.org>
Sent: Thursday, April 25, 2002 5:49 PM
Subject: Re: [Xitami] Streaming Video


On 25 Apr 2002 at 17:23, Gregory Hart wrote:

> You could also use the object tag in HTML and put it into a web page
> that way. If you could get me more information on specifically what
> type of video file it is and if you want to display it in a different
> program or on a web page, I'd be able to help you more. -Greg

We were just wondering about this very subject today.   Do you
have a script that streams mpeg files?

~Michael

--
Xitami Users Mailing List -- For Xitami support
To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami