[Xitami] Streaming Video

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


If you don't have perl, and you have a file, for example, video.mpv, you could create another file, stream.mpv, and put
http://www.domain.com/video.mpv in it. This is basically what the perl script does. The video.mpv is the file that you want to
steam. When someone clicks on stream.mpv, Xitami automatically sends the content type, video/mpeg, and when the media player opens,
it looks at http://www.domain.com/video.mpv and redirects to that file. Hope this helps for those without perl.
-Greg

----- Original Message -----
From: Gregory Hart <greg@freastro.net>
To: <xitami@lists.xitami.org>
Sent: Thursday, April 25, 2002 6:15 PM
Subject: Re: [Xitami] Streaming Video


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



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