Someone gave me the code I needed to play a media file in a web page, and it works fine. But it also uses the <embed> tag, which has been deprecated. Is there a way to modify this code so it still works without using the <embed> tag?
Code:
<!-- change 'FILE.mpg' to file name of file to be played -->
<object id="MediaPlayer1" 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" width="280" height="256">
<param name="fileName" value="FILE.mpg">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="Volume" value="-450">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="FILE.mpg" name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=1 volume=-450>
</object>
Inquiring minds want to know.
__________________
They have computers, and they may have other weapons of mass destruction. - - Janet Reno
|