Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Auto ref-movie generator (was: PHP, Content Management, auto link generation)



I found this script immensely useful, but it doesn't quite work because 
it doesn't give out the right header for Content.

Since I mostly code in PHP, here is the PHP version:

<?php
	$uri = $HTTP_GET_VARS['uri'];
	header('Content-Type: video/quicktime');
	echo "rtsptext\rrtsp://$uri";;
?>


Hope someone finds this useful. It works great for me.


Brian Blood
MacServe.net






John Anderson wrote on 4/19/2002 12:33 PM

>#!/usr/bin/perl
>
>use CGI;
>$query = new CGI;
>
>print $query->header('video/quicktime');
>
>print "rtsptext\rrtsp://"; . $query->param('uri');
>
>exit 0;
>
>---------------------------
>
>Save this in your CGI directory, and then you can use a tag like this in 
>your Pages (or return it dynamically from another script):
>
><object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="120" 
>height="120" codebase="http://www.apple.com/qtactivex/qtplugin.cab";>
>	<param name="SRC" value="http://your.server.addr/cgi-
>bin/getrtsptext.cgi?uri=your.server.addr/path_to_movie.mov">
>	<param name="TYPE" value="video/quicktime">
>	<param name="AUTOPLAY" value="true">
>	<param name="CONTROLLER" value="false">
>	<embed src="http://your.server.addr/cgi-
>bin/getrtsptext.cgi?uri=your.server.addr/path_to_movie.mov" 
>type="video/quicktime" width="120" height="120" autoplay="true" 
>controller="false" 
>pluginspage="http://www.apple.com/quicktime/download/";>
>	</embed>
></object>
_______________________________________________
streaming-server-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/streaming-server-users
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.