Forum Home
Press F1
 
Thread ID: 67094 2006-03-16 19:56:00 How do I embed wmv onto a webpage? Jimmy D (2061) Press F1
Post ID Timestamp Content User
438796 2006-03-16 19:56:00 Hi,
Lately i have been trying to embed a wmv onto my webpage however it seems to now work for me. i'm using a simple code with no parameters which is <embed src=my_video.wmv> which works for me when it is a .avi file but seems not to work when using wmv files. is there special code for wmv? or does someone know of a wmv to avi converter?
Jimmy D (2061)
438797 2006-03-16 22:03:00 www.winavi.com bartsdadhomer (80)
438798 2006-03-16 22:20:00 thanks for that, will have a download and see if it works


however it seems to now work for me

i ment 'not work for me.
Jimmy D (2061)
438799 2006-03-16 22:35:00 As I understand it, you need to use an Active-X control to embed a WMV file. The instructions are on the Microsoft site, but below is a sample code with some parameters included.

<object id="MediaPlayer" width="480" height="384" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="activex.microsoft.com border="0" standby="Loading Windows Media Player components..." type="application/x-oleobject">
<param name="FileName" value="filename.wmv" />
<param name="ShowControls" value="1" />
<param name="ShowPositionControls" value="1" />
<param name="ShowAudioControls" value="1" />
<param name="ShowStatusBar" value="1" />
<param name="AutoStart" value="1" />
<param name="AnimationAtStart" value="1" />
<param name="AllowScan" value="1" />
<param name="Volume" value="50" />
</object>
Wheels (7227)
438800 2006-03-17 04:58:00 Active X won't work with Mac OS X and I am under the impression it doesn't work with FireFox under Windows. If you want to keep your visitors happy, Flash based video would probably be the best option. maccrazy (6741)
438801 2006-03-17 07:41:00 I am under the impression it doesn't work with FireFox under Windows

The code that Wheels posted (as it works on the TVNZ website) does work with firefox.
stu161204 (123)
438802 2006-03-17 08:44:00 Doesn't the usual "embed" function work?

<embed src="filename.wmv">
I have forgotten what's the tagline again to specify the size in terms of width and height :p

Cheers :)
Renmoo (66)
438803 2006-03-17 09:00:00 Does anyone use Google anymore? pine-o-cleen (2955)
438804 2006-03-20 23:15:00 Yes, the <embed> tag is the rest of the code that's used for compatibility with the Mozilla browsers, I just posted the common code to get Jimmy started... the latest Firefox and Netscape browsers both now view ActiveX components but the embed code should make it more compatible for older browsers...
And as pine-o-clean mentions in their post, google has all the answers... and much simpler than Flash based video.
Wheels (7227)
1