internet.com

Developer Channel

SYMM

QuickTime Basics (9)

Putting QuickTime Online

Embedding QT in your HTML
At this point in the process things start to get easier. Making the clip appear in your Web page requires an EMBED tag. First, I reference the movie filename.

<embed src="qt4sample.mov">

Next I put in the size of the movie I'm going to display.

<embed src="qt4sample.mov" width="240" height="180">

Stop and play buttons might be nice. I can add a controller but I had better make the movie height larger by 16 pixels if I want things to display right.

<embed src="qt4sample.mov" width="240" height="196" controller="true">

QuickTime allows the user to control whether or not movies automatically play when loaded. As a Web author, I probably want to control that capability myself. If I set "autoplay" to "true," the movie will start playing once enough of the clip has been preloaded. For now, I'll turn it off and force the user to hit the play button. Oh, and let's use good form and end that embed tag with a closing tag.

<embed src="qt4sample.mov" width="240" height="180" controller="true" autoplay="false"></embed>

There, my clip now looks like this:

These embedding commands are the basics but you probably want to look through the complete list for others that might be handy.

Am I forgetting something? Yes! I have yet to implement that movie poster image I talked about earlier...


<< Prev 12345678 • 9 • 1011 Next >>
 
The Latest WebDev Tips from DevX

Receive news via our XML/RSS feed
XMLRSS



Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers