当前位置: 代码迷 >> JavaScript >> 如何用javascript控制media在指定的时间后stop
  详细解决方案

如何用javascript控制media在指定的时间后stop

热度:293   发布时间:2012-03-23 12:06:21.0
怎么用javascript控制media在指定的时间后stop
我在网页里面嵌入了下面一段代码,我想在页面载入后的10秒钟后把AutoStart的值设置成flase,这个可以实现吗?

<OBJECT   WIDTH= "478 "   HEIGHT= "338 "   CLASSID= "CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95 "   CODEBASE= "http://activex.microsoft.com/activex/controls/mplayer/en/   nsmp2inf.cab#Version=6,4,5,715 "   STANDBY= "Loading   Microsoft?   Windows   Media?   Player   components... "   TYPE= "application/x-oleobject ">  
<PARAM   NAME= "FileName "   VALUE= "http:\\localhost\vedios\ <%=fileType%> \ <%=fileNames%> \ <%=linkFile%> . <%=fileformat%> ">  
<PARAM   NAME= "ShowControls "   VALUE= "true ">  
<PARAM   NAME= "AutoRewind "   VALUE= "true ">  
<PARAM   NAME= "AutoStart "   VALUE= "true ">  
</OBJECT>

------解决方案--------------------
setTimeout(function(){...},10000)
不知道行不行.
  相关解决方案