View Full Version : How do I embed a windows media player in a...
~sweet~_*_^~Melly~^
04-09-2007, 06:47 PM
...webpage?
Pamela G
04-09-2007, 08:01 PM
I am taking a multimedia education class at the current time.
Here is the code that the professor gave us to embed our video using windows media player. Put your file names in the places where it says example.wmv
2.b. Windows Media Player Embedding
To embed an object in HTML document, the object class ID is required. The class ID for Windows Media Player 7, 9, 10 and 11 is clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6.
Insert the following code into your HTML document to embed Windows Media Player 7 and later:
In the URL parameter, you can specify a URL (for streaming) or a local file.
All of the other posts are correct, except when putting an object tag in a browser, you DO NOT NEED a classid, and there are advantages of not using one. Specifically, with Media Player, not using a classid can make it possible to use 1 tag across all browsers, this is the minimum you need:
FireFox doesn't like objects with classids, because then it starts looking for ActiveX plugins which can cause lots of problems. Also note that all the posts here use different classids, for different versions of Media Player, which can cause the browser to only look for a specific version of media player. The method I posted works in IE, Firefox, Opera and Safari on Windows 98, 2000, XP and Mac OS X
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.