01Mar Getting Flash to play in your web page (flv or m4v)
I had a need to get flash to play on a website recently. I took a look around and finally came up with JW FLV Player. So I took the dvd I needed to get on the web (it is a dvd showing the benefits of the Masonic Model Student Assistance Program) and applied handbrake to create a m4v file. I told it I wanted a target file size of 20 megs.
I then renamed the m4v to flv. Took the contents of the zip I downloaded from longtail (link above) and placed the js and the swf on the target server. I uploaded the videos to a hosting location I use and added the required code to my entry:
<script type=’text/javascript’ src=’swfobject.js’></script>
<object id=”player” classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ name=”player” width=”400″ height=”315″>
<param name=”movie” value=”player.swf” />
<param name=”allowfullscreen” value=”true” />
<param name=”allowscriptaccess” value=”always” />
<param name=”flashvars” value=”file=http://www.everythingboomerang.com/f4c_files/MMSAP_Foundation4Children.flv&image=MMSAP_Foundation4Children.jpg” />
<embed
type=”application/x-shockwave-flash”
id=”player2″
name=”player2″
src=”player.swf”
width=”400″
height=”315″
allowscriptaccess=”always”
allowfullscreen=”true”
flashvars=”file=http://www.everythingboomerang.com/f4c_files/MMSAP_Foundation4Children.flv&image=MMSAP_Foundation4Children.jpg”
/>
</object>
and I was set.
You can see the output here:
Foundation for Children

