| Once your video movie file is
produced, and prepared for streaming, you need to embed the
file into your webpage. The following example demonstrates
one way this can be done
Considerations
- Audience - What is the average connection
speed of your target audience, and will the video add rather
than detract from your message.
- File size – video files are very
large files and streaming them from your webserver will
chew up a lot of your monthly bandwidth
- Web browser - different web browsers
treats videos differently. What may work in one browser,
may not work in another.
- HTML Validation - Use both old and new
HTML embed tags. (<object> and <embed>) to ensure
you get maximum browser compatibility.
- Site Structure – Your video web
pages, movie files and player files need to be grouped together
in a single directory. How you organise your videos also
helps a lot with administration. I recommend you create
a folder called "video" and save all movie files
there. The path to your video will be http://yoursite.com/video/movie.avi.
Create the Video Embedding Code
See the sample code below:
Edit Attribute Settings
If using the above code as your template, you need to adjust
the following attributes:
- Check width and height attributes match the size of your
video. Remember to add a few pixels [around 25] to allow
for the player controls.
- Edit the movie.avi path to your movie file.
- Set controller attribute depending upon whether you want
to display the video controls or not [often not displayed
when set to autoplay].
- Set the autoplay attribute tells the browser to play
(or not play) the video when the page loads. 'True' = play
automatically, 'False' = user will need to click the Play
button.
- The pluginspace tag will prompt the user to download
quicktime if they do not already have it.
|
|