Share this Page URL

From iMovie to QuickTime > From iMovie to QuickTime - Pg. 325

Embedding the Movie in Your Web Page In the previous section, you read about how to create a link that makes your movie pop up in a separate window. But the really smooth operators on the Internet scoff at such an amateur hack. It's far more elegant to create a movie that plays in place, directly on your Web page--no pop-up window necessary. Doing so requires yet further immersion in the HTML programming language--but only up to your ankles. If you're not afraid, proceed: The <embed> command Creating this effect requires a few more lines of HTML code. One of them is the <embed> tag, which instructs your visitor's Web browser on how to handle media types it doesn't ordinarily know how to display (in this case, a QuickTime fle). It can learn to understand QuickTime movies, however, either by relying on a helper application or a plug-in. Following the <embed> tag, you'll want to type in a variety of <embed> tag attributes, additional HTML commands that give the browser further instructions on formatting and displaying the fle. And that used to be all there was to it. A couple of years ago, though, Microsoft pulled a switcheroo in the way it wrote its fagship Web browser, Internet Explorer. The result: millions of QuickTime movies on the Web didn't show up correctly in versions 5.5 or 6 of Internet Explorer for Windows. The following blob of code solves the problem. It embeds the movie on your page in such a way that the ugly "broken plug-in" icon will never appear, even for those long-suffering Windows users. (If they don't have a version of QuickTime that will work seamlessly, they'll see a message that offers to download and install the latest QuickTime software automatically, without having to close their browsers.) <OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="240"HEIGHT="196" CODEBASE=""> <PARAM name="SRC" VALUE=""> <PARAM name="AUTOPLAY" VALUE="true"> <PARAM name="CONTROLLER" VALUE="false"> <EMBED SRC="" WIDTH="240" HEIGHT="196" AUTOPLAY="true" CONTROLLER="false" PLUGINSPAGE="http://www."> </EMBED> </OBJECT> Posting a Movie on Your Own Web Site chapter13:moviesontheweb--andonthephone 325