It's a two stage process -
- convert your movie to flash video,
- then embed into a new swf file or use a webpage player.
Convert mov qt and avi video to Flash video by using some converter like the free
Riva FLV Encoder 2.0
Once you have your flv file (and preview jpg image) you can display it on a web page using flowplayer or another web page player.
The code looks confusing but in fact is it very easy to use.
I am using flowplayer here to display
Machine Masters - if you
save link as this link, you will be able to download the FlowPlayer.swf file.
To display the flash movie, you need to add the following code.
Code: Select all
<object data="FlowPlayer.swf" type="application/x-shockwave-flash" width="480" height="290" align="absmiddle" id="FlowPlayer">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="FlowPlayer.swf" />
<param name="quality" value="high" />
<param name="scale" value="noScale" />
<param name="wmode" value="transparent" />
<param name="flashvars" value="videoFile=VIDEONAME.flv&autoPlay=false&bufferLength=5&loop=true&progressBarColor1=0xAAAAAA&progressBarColor2=0x555555&autoBuffering=false&splashImageFile=VIDEONAME.jpg&hideControls=false"/>
</object>
Just rename the VIDEONAME.flv and the VIDEONAME.jpg with the name of you movie.
In this example, the Flowplayer and the movie are in the same directory - until you are familiar with the code, best keep it that way.
My movie is 480 x 270. The height is +20 (to allow for the control bar)
Other values:
autoPlay=false ... means the movie will not auto- play.
loop=true ... set to false if you want the movie to play just once.
autoBuffering=false ... play with this to see which is best for your display.
hideControls=false ... does what it says, hides the play controls.
You can also add a FLV to any Flash program - you need to know action script to get the best out of it,
ie, how to load and play the file. Most people just use an external player on the page.
Okay, does that answer your question?
Rhoel