Are you having fun trying to find the correct code to embed WMV correctly embed a wmv file so it plays properly in both IE and Firefox?
My problem was: I was trying to embed a wmv file in Tumblr. I set the “autostart” parameter to “false.” But no matter what code I used, it would autostart in Firefox. Basically, Firefox was ignoring the autostart=false command.
First simple fix: change “false” to “0″ and of course, “true” would equal “1″
But I still had problems. I found, however, sample code here that worked. Here is the way I used it:
<OBJECT id=’mediaPlayer’
width=”400″
height=”300″
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’>
<param name=’fileName’ value=”http://www.iii.org/static/video/mediaplayer/SaveMoneyOnAutoInsurancePodcast.wmv”>
<param name=’animationatStart’ value=’true’>
<param name=’transparentatStart’ value=’true’>
<param name=’autoStart’ value=”0″>
<param name=’showControls’ value=”true”>
<param name=’loop’ value=”true”>
<EMBED type=’application/x-mplayer2′
pluginspage=’http://microsoft.com/windows/mediaplayer/en/download/’
id=’mediaPlayer’
name=’mediaPlayer’
displaysize=’4′
autosize=’-1′
bgcolor=’darkblue’
showcontrols=”true”
showtracker=’-1′
showdisplay=’0′
showstatusbar=’-1′
videoborder3d=’-1′
width=”400″
height=”300″
src=”http://www.iii.org/static/video/mediaplayer/SaveMoneyOnAutoInsurancePodcast.wmv”
autostart=”0″
loop=”true”>
</EMBED>
</OBJECT>
W3C has a page on this as well. It includes parameters.
