Re: QuickTime question
| From: | tedd | Date: | Wed, 15 Aug 2007 20:13:26 +0000 |
| Subject: | Re: QuickTime question | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260873@lists.php.net to get a copy of this message | ||
At 8:54 PM +0100 8/15/07, Stut wrote:
tedd wrote:-Stut: As for "inside the page", I meant that the example I originally provided sent the user to another page and I would like them to stay, which your suggestion worked very well -- thank you. As for "in the php realm" -- I'm sure you're right -- I just saw: header("Content-type: video/quicktime"); and wanted to investigate. It looked like something I could play with. Besides, I do see that PHP Classes deals with it as well. So, I just wanted to see where that might take me. As for "using the right tool for the job", there's lot's of tools that overlap and until you use the wrong one, you (as least me) don't really understand what the right one is. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.comAt 4:32 PM +0100 8/15/07, Stut wrote:I'm confused. What do you mean by "inside the page"? If you mean the embedded full-page Quicktime player that you sometimes get, that's a browser configuration issue and you'll never be able to control it for everyone, if anyone. I'm not clear why you want a solution "in the php realm"? Use the right tool for the job and life becomes easier. -Stuttedd wrote:-Stut: That certainly works, -- http://www.webbytedd.com/bb/ice1/ -- but I was hoping for something in the php realm.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