LexiConn Knowledgebase

Knowledgebase Home | Favorites Knowledgebase Home | Favorites
Search the Knowledgebase Browse by Category
How do I Embed a Flash Video in one of My Pages?
Article Details

Last Updated
28th of August, 2008

User Opinions (12 votes)
83% thumbs up 16% thumbs down

How would you rate this answer?
Helpful
Not helpful

The method for embedding a Flash video file in your web page depends on which Flash format you are using. Flash video objects may be encoded in either .swf or .flv format. If you encode your video as a .flv file you will need to embed a .swf-based flash player in order to play your .flv files on the page, if you encode it as a .swf file, it can be embedded in your page directly using the following code:
(replace all attribute values shown in braces with your own values)

Embed a .swf File

<embed 
  src="[your_video_file.swf]" 
  width="[width]"
  height="[height]"
  allowscriptaccess="[always|never]"
  wmode="[opaque|transparent|window]"
  allowfullscreen="[true|false]"
  flashvars="[autostart=true&...(see Flash variables)]"
/>

Here is a sample with actual values:

<embed 
  src="myvideo.swf" 
  width="400"
  height="300"
  allowscriptaccess="always"
  wmode="transparent"
  allowfullscreen="true"
  flashvars="autostart=true"
/>

If you are encoding your Flash video in .flv format you can find a free .swf-based player (JW FLV MEDIA PLAYER) along with instructions on how to install and deploy your Flash videos here:




Related Articles
Attachments
No attachments were found.

Powered by Interspire Knowledge Manager Knowledgebase Software