Will Bueché

»

Blog

I don't blog much 

Embedding video in a webpage

Posted in Personal by Will on Saturday, April 12th, 2008 ~ 10pm

Whew. Second day researching this, second try trying not to spend anything on this, but ultimately a day in which I learned how to embed video into a webpage (which used to be easy, but now has to be done by converting the video into flash, which is how YouTube does it).

I needed: Easiestutils Video to FLV Converter ($30). Not only does it successfully convert WMV to FLV (unlike another product I bought for $20 that did not work!), but the FLV will also generate a JPG to serve as the pic that appears before you press play. And yes, you can always take that photo and replace it with another photo of the exact same size and exact same name, and it will successfully call that one forth instead (which is great if you are picky – or highly selective – like I am!).

Secondly, I needed to install this small software item on the website — repeat: on the website (this item and the flv video itself must both be on the very same website):
JW_FLV_Media_Player – a freeware flash video embed player by Jeroen Wijering.

Thirdly, I needed to throw away the html code written by Easiestutils Video to FLV Converter and instead, used this html:

<embed src=”http://www.michaelhcohen.com/press/mediaplayer/mediaplayer.swf”
width=”320″ height=”240″ allowscriptaccess=”always” allowfullscreen=”true” flashvars=”height=240&width=320&file=http://www.michaelhcohen.com/CIMER.flv
&image=http://www.michaelhcohen.com/press/cimerpic.jpg
&backcolor=0xFFFFFF&displayheight=240&searchbar=false&showdigits=false&usefullscreen=false”
/>
<script type=”text/javascript” src=”http://www.michaelhcohen.com/press/mediaplayer/swfobject.js”></script>

So far I’ve tested the results on a Win PC running Firefox. I have not yet been able to test it on a Mac running Safari, etc. But since I tried about three or four entirely different techniques and got negative results, I am especially amazed that this brew may be working.

Update: YES! IT WORKS ON WIN AND MAC! WHoo-hoo!

Leave a Reply