PDA

View Full Version : Question Regarding Embedded Quicktime Movies




GovornorPhatt
Apr 2, 2004, 08:19 PM
Hey guys. I was wondering how to make a page similar to this one on apple's website: http://www.apple.com/trailers/touchstone/raising_helen/.

When you first goto the page, you have to click the image (the one that says click here to play movie) before the movie starts loading. How would I do that for an embedded quicktime movie? Is that just a simple javascript image swap?



Benjamin
Apr 2, 2004, 08:58 PM
<TABLE WIDTH="600" BORDER="0" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD WIDTH="600" VALIGN="top" ALIGN="CENTER">
<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="480" HEIGHT="276" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<PARAM NAME="src" VALUE="http://a772.g.akamai.net/5/772/51/fe463836e7c745/1a1a1aaa2198c627970773d80669d84574a8d80d3cb12453c02589f25382f668c9329e0375e81788fc5bcb3aad2186f86b/qtstart5a_480x228.mov">
<PARAM NAME="controller" VALUE="false">
<PARAM NAME="target" VALUE="myself">
<PARAM NAME="href" VALUE="http://a772.g.akamai.net/5/772/51/bef519febe88e2/1a1a1aaa2198c627970773d80669d84574a8d80d3cb12453c02589f25382f668c9329e0375e8178bfa6fd23aad2190fe6392 0465ce41aa187fde46ab177cea/raising_helen-sref.mov">
<PARAM NAME="pluginspage" VALUE="http://www.apple.com/quicktime/download/indext.html">
<EMBED WIDTH="480" HEIGHT="276" CONTROLLER="false" TARGET="myself" HREF="http://a772.g.akamai.net/5/772/51/bef519febe88e2/1a1a1aaa2198c627970773d80669d84574a8d80d3cb12453c02589f25382f668c9329e0375e8178bfa6fd23aad2190fe6392 0465ce41aa187fde46ab177cea/raising_helen-sref.mov" SRC="http://a772.g.akamai.net/5/772/51/fe463836e7c745/1a1a1aaa2198c627970773d80669d84574a8d80d3cb12453c02589f25382f668c9329e0375e81788fc5bcb3aad2186f86b/qtstart5a_480x228.mov" BGCOLOR="FFFFFF" BORDER="0" PLUGINSPAGE="http://www.apple.com/quicktime/download/indext.html"></EMBED>
</OBJECT>
</TD>
</TR>
<TR>
<TD><IMG WIDTH="1" SRC="http://a772.g.akamai.net/7/772/51/ef865529940b9e/www.apple.com/main/elements/spacer.gif" ALT="" HEIGHT="15"></TD>
</TR>
</TABLE>

ok so that is the code that they use, what does it mean? they load a move before another movie, that would be the ...qtstart5a_480x228.mov. then it is defined that the start movie is also a url, and since the plug in is already cached they swap the next movie with the start movie. of course they also use some code like this <PARAM NAME="controller" VALUE="false"> to get rid of the controller and etc.

hope that helps, honestly i have never embedded a qt movie like they do, so i am just taking what i see from the code.

GovornorPhatt
Apr 2, 2004, 09:41 PM
Thanks for the help. I'll try it and see if it works. But if anyone else knows a different aproach, let me know

Rower_CPU
Apr 3, 2004, 02:17 AM
Here's the trick to the code Apple and lots of other people use:
<PARAM NAME="target" VALUE="myself">
<PARAM NAME="href" VALUE="url of actual movie">

By loading a "poster" or placeholder movie you accomplish two things; a) that the visitor has QT installed, and b) don't force them to download a video file they might not want to watch.

Loading in a placeholder, and then adding the target and href, users can see there's a video file there and then click if they decide it's worth their time and bandwidth to watch it.

I've been using this technique on sites for over 4 years now and highly recommend it. :)