日期:2014-05-16  浏览次数:20419 次

在FireFox中如何调用Window Media Player控件中的play等方法和一些属性
RT

------解决方案--------------------
这样可以吗?

<!-- [controls] 可通过WindowsMediaPlayer.controls对播放器进行控制并取得相关的一些信息: controls.play; 播放 controls.stop; 停止 controls.pause; 暂停 controls.currentPosition:Double 当前播放进度 controls.currentPositionString:string 时间格式的字符串 "0:32 "[currentMedia] 可以通过WindowsMediaPlayer.currentMedia取得当前媒体的信息 currentMedia.duration Double 总长度 currentMedia.durationString 时间格式的字符串 "4:34 "
-->
<OBJECT class=white1 id=player type=application/x-oleobject height=341 standby= "Loading Windows Media Player components... " width=456 classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 VIEWASTEXT>
<PARAM NAME= "URL " VALUE= "d:/a1.swf ">
</object>
<input type= "button " value= "播放 " onclick= "player.controls.play() ">