How do I embed or use .avi, quicktime, or other file formats?

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. 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

Ditto.

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.

  • 0 Los Usuarios han Encontrado Esto Útil
¿Fue útil la respuesta?

Related Articles

How to Stream Quicktime Files

All iWebhosting.com.my hosting accounts support QuickTime media files via HTTP streaming. Also...

Choosing a video format

If you're thinking about adding video to your Web page, you should take a minute to learn about...

How do I stream .mp3 files?

1. Upload your MP3 to your server2. Open notepad. write the entire url of the mp3: ie:...

Do you support the ASX media format on your web hosting?

Yes, we support ASX media format on our windows web hosting plans. For Linux/Unix...

How do I stream Real Audio and Video Files?

Adding Real Audio/Video StreamingThe HTTP protocol enables audio content providers to stream...