How to add VIDEO to your web page
Before attempting to embed a video in your web page, find out the
file extension
of the video. Most videos require a "plug-in" be installed on the user's
computer. The plug-in help "launch" the video and can either play it in the
browser (preferred) or have the user download the video to his/her computer and
then play it.
Flash files are often called videos when in fact they are instead animations. In
order for Flash "videos" to be played in the browser a user must have the Flash
Player installed on his computer.
CODE to add VIDEO to your web page:
<embed src="myfirstvideo.avi" /> OR
<object data="video.avi" type="video/avi" /> OR
<img dynsrc="myfirstvideo.avi" />
*This only works in Internet Explorer!
<a href="video.avi">Click here to play a video file</a>
* Be sure to upload the video to your web server!
YouTube Videos
How to add a single YouTube video to your web page
Once you have uploaded your videos to YouTube, click on the small arrow on the bottom right of the screen.
This will minimize the image of the video and display the embed code in a textbox. Select this text and copy it.
Then select a web page in your site that you want to display the video on. In the html code, paste the code
inside the body tag. View the page in the brower. You will now see the video (hosted on YouTube) being displayed
on a web page of your web site. The video player will be "branded" with the YouTube name.
View the results of a single video embeded on a web page.
How to add multiple YouTube videos to your web page (playlist)
If you have several videos you want to display in the same video player, you can create a custom player and
set it up to play the videos from your playlist.
View the results of a video
playlist embeded on a web page.
How to add a video bar of YouTube videos to your web page
You can create either a horizontal video bar or
vertical video bar on your web site that
lets your visitors view YouTube videos from your web page. An example of the video bar
has been embeded on this web page and displays on the right hand side of the page.
The video bar is a little application that can live anywhere on your website,
displaying a small selection of videos which automatically update. You can fill
your video bar with different feeds—like Most Viewed, Most Rated, and Recently
Added videos—or channels or search expressions. When a user clicks on a video in
the bar, a window pops up and plays the video. Try out the video bar below from
our own YouTube channel. Then
make your
own with a wizard that will generate all the code for you according to how
you want the bar displayed.
YouTube accepts a wide
range of video file formats such as .WMV, .AVI, .MOV, and .MPG transferred from
most digital cameras, camcorders, and cell phones.
Use the following settings to give the best results.
- Video Format: MPEG4 (Divx, Xvid)
- Resolution: 640x480 pixels
- Audio Format: MP3
- Frames per second: 30
- Maximum length: 10 minutes (we recommend 2-3 minutes)
- Maximum file size: 1 GB