Everyone know that Flash is the best bet if you want to embed video to web page, or rather FLV, for Flash works cross browsers and cross platform.
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I did not understand some parameters totally in the HTML tag. These days when I was surfing the Internet I have found some comprehensive introduction to these two tags. I read it and conclude it with my own words; I think it will be useful to us, so I wrote this article.
This article includes two parts:
1. General introduction to the two tags.
2. Why do we use all the tags above? Is there any tag that can be left out?
1. General introduction to the two tags.
To display Flash correctly on web page, HTML tags which indicate the path of the Flash file is needed in the web page. These HTML tags are OBJECT tag and EMBED tag. OBJECT tag is used for IE on Windows, while EMBED tag is for Netscape Navigator on Windows and Macintosh and IE on Macintosh. IE on Windows play Flash with ActiveX component while other web browsers play Flash with Netscape plug-in technique. The code below is an example used to embed Flash file to web page.
Example HTML Code:
<object classid="clasid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
width="432" height="330" id="myMovieName" >
<param name="movie" value="myMovieName.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#FFFFFF">
<embed src="myMovieName.swf" quality="high" bgcolor="#FFFFFF" width="432" height="330" name="myMovieName" align="" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
Note that myMovieName.swf is the actual flash video player. If it resides in another directory, then point to it with a relative path (e.g. video/myMovieName.swf) or an absolute path (e.g. http://www.yourdomain.com/video/myMovieName.swf ).
Part 2 "Why do we use all the tags above? Is there any tag that can be left out?"
Related article
How to add flash videos to website
Customize a web FLV Player in the easiest way
This comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteMany Thanks, That's what I was looking for
ReplyDelete