tedd wrote:
Given:
http://www.webbytedd.com/bb/ice/
How can I play the movie inside the page instead of going to another page?
I know that I could use phpclasses, but that seems an overkill.
I think something like this --
$file_source = 'ice-fishing.mov';
$size = filesize($file_source,"","");
header('Pragma: public');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: must-revalidate, pre-check=0, post-check=0,
max-age=0');
header('Content-Transfer-Encoding: none');
header("Content-type: video/quicktime");
header("Content-Length: " . $size);
-- but it's falling short.
Something like this...
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"
height="153" width="321">
<param name="src" value="ice-fishing.mov">
<param name="controller" value="true">
<param name="autoplay" value="true">
<embed src="ice-fishing.mov"
pluginspage="http://www.apple.com/quicktime/download/" controller="true"
autoplay="true" height="153" width="321">
</object>
I'm sure there are lots of tutorials on the web regarding the details -
I just nicked this code from
http://www.apple.com/trailers/fox/thesimpsonsmovie/trailer1_small.html
-Stut
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php