How do I embed or use .avi, quicktime, or other file formats?
Posted by Support, Last modified by Support on 16 March 2009 12:28 PM
How do you place the clip?  You can place and access Web-based video in one of two ways: the anchor tag <a href> and the <embed> tag. Although we recommend using flash for streaming. Using <a href> is the same as placing any link within an HTML document, but here's a refresher on how it looks:

<a href="/video/golden.avi">goldenrod</a>

If you use this method, your users will either save the file to their desktops, launch a helper application, or load a new browser page, depending on how they've set their preferences and which browser they're using. If you want your video to stream during download, or appear on the same page as the rest of your content, you'll want to embed the clip in a page, using <embed>. The <embed> tag is syntactically similar to the <img> tag, and uses many of the same elements. Remember, though, that the embed tag requires users to have the appropriate plug-in installed; if they don't, they won't see your work. The HTML for an embedded video file goes something like this:

<embed src="/video/gore.mov" height=108 width=33% controller=false autoplay=true playeveryframe=false pluginspage="oops.html" loop=palindrome>

Elements specific to video include:

height=pixel/percent

Unless you need your movie to scale, set this in pixels, according to how big your movie is.

width=pixel/percent

autoplay=true/false

Answer with "true", and your movie streams in with the page. Answer with "false", and the user must click to play.

controller=true/false

This adds knobs that let your users control the movie. If you set this for "true", you'll want to add at least 15 pixels to the height of your movie. Otherwise the movie and the controller will be forced into the space required for the movie.

loop=true/false/palindrome

If you want the movie to play over and over, set this to "true". If you want it to play once and stop, set it to false. If you set it to "palindrome", it will play from beginning to end and then from end to beginning, continuously.

href=value

This just makes the movie link to something else.

pluginspage="oops.html"

This will take users who don't have the right plug-in to a page that tells them where to get it. As with everything Web, there are no universal file formats or delivery standards for video, so, although I prefer QuickTime and the use of the <embed> tag, I'd recommend offering a few different options for surfers to choose from. That way even more people can enjoy your awesome video work.
(760 vote(s))
Helpful
Not helpful

Comments (0)