Reply
Use of <embed> in <object>
Old 07-15-2006, 09:33 AM Use of <embed> in <object>
Experienced Talker

Posts: 32
Location: Indiana, USA
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
Smoking Man is offline
Reply With Quote
View Public Profile Visit Smoking Man's homepage!
 
When You Register, These Ads Go Away!
Old 07-15-2006, 03:56 PM Re: Use of <embed> in <object>
LadynRed's Avatar
Super Moderator

Posts: 6,559
Location: Tennessee
Yes... read here:
http://www.alistapart.com/articles/byebyeembed
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-17-2006, 03:35 PM Re: Use of <embed> in <object>
Novice Talker

Posts: 7
I beleive you want your site to be W3C Compliant . Here read this article it was very useful cause I had the same problem. http://www.alistapart.com/articles/flashsatay/
c258 is offline
Reply With Quote
View Public Profile
 
Old 07-17-2006, 07:26 PM Re: Use of <embed> in <object>
LadynRed's Avatar
Super Moderator

Posts: 6,559
Location: Tennessee
My link IS compliant method, it validates AND it is accessible. And.. it's newer than Satay and works for something besides Flash.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Use of <embed> in <object>
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13908 seconds with 12 queries