Warning: fopen(graphic_design/files/thread-423-1.txt) [function.fopen]: failed to open stream: Permission denied in /graphic_design/global.php on line 421
file NOT opened WindowsMedia Player Embed code -
PDA

View Full Version : WindowsMedia Player Embed code


vinnyio
03-01-2004, 09:07 PM
Looking for a cross browser snippet that will embed a .wmv file in a HTML page. the one Im using goes belly up in Opera, and Firefox. Anyone been through these trials and tribulations already?

Steeldolphin
03-01-2004, 10:05 PM
how much traffic does the site recive from these browsers?

<1% ?

Arch Stanton
03-02-2004, 09:49 AM
Whenever you try to embed media directly into a web page, you will run into problems like this. I would reccomend linking to an external file. Embedding flash with sound can be a bit easier, and has better cross browser/platform support than windows media. You can also put in handy, customized "Stop this annoying music" buttons easily with flash. You could also use the BGSOUND tag. This tag will only work with IE and will be ignored by other browsers. This tag is not W3C compliant. Web monkey has a good article on using the OBJECT tag with the EMBED tag here:

http://hotwired.lycos.com/webmonkey/01/49/index2a.html?tw=multimedia

vinnyio
03-03-2004, 01:38 PM
Thanks for all your help. It was actually for a cd rom presentation. Using fluffed html pages. Just wanted to cover all bases as the cd is going to a bunch of stuff business menu with over the hill laptops in Belgium.

mojojojo
03-03-2004, 07:02 PM
What code are you using, is it this one?

<object id="MediaPlayer1" width=180 height=200
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft® Windows® Media Player components..."
type="application/x-oleobject" align="middle">
<param name="FileName" value="Server/file">
<param name="ShowStatusBar" value="True">
<param name="DefaultFrame" value="mainFrame">
<embed type="application/x-mplayer2"
pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
src="Server/File" align="middle"
width=176
height=144
defaultframe="rightFrame"
showstatusbar=true>
</embed>
</object>