Relpy to how to insert a movie into HTML doucment
Users can embed a movie into a HTML document using any of the below examples. It is important to realize that before you use the below examples that you understand what type of movie you are going to be playing as well as the browsers that are going to be playing the files. By default a browser may not have the necessary plug-in to view your movie file.
Link to movie files
Basic embed command
Add movie files using the img tag
Embed command to play QuickTime movies ( .mov )
Link to movie files
The below examples are different methods of making the video file viewable from the browser window. In addition to the below recommendations it is also recommended you create a direct download link to the file. Which will allow the user to download the file to their computer if it is unable to be played from within the browser. Below are two examples of direct links for the two video files in this document.
Floppy drive robot
HTML code:
<a href="http://www.cabainnovatives.net/issues/floppy2.avi">Floppy drive robot</a>
IBM Linux commercial
HTML code:
<a href="http://www.cabainnovatives.net/issues/ibm-linux.mov">IBM Linux commercial</a>
Basic embed command
This is the most basic method of embedding a file into a web page.
Example HTML code:
<embed src="http://www.cabainnovatives.net/issues/floppy2.avi"></embed>
In this basic example you're simply using the embed command and pointing to the source of the movie file you wish to play. Keep in mind this is a very basic example and will not display any type of warning or point the user to a location to download the plug-in if the video file is not supported.
|