当前位置:首页 » 多媒体相关

Media Player播放完有触发scipt事件么?怎么捕获?


windows   media   player   有事件处理么?  
  比如播放完毕可以设诸如onplaystop到某个script函数处理?  
   
  能给个具体的例子吗?  
  谢谢!

推荐阅读

  • 用Visual Basic6类模块打造控件 [详细内容]
  • Windows Live将引入家庭安全服务-live,windows,安全- [详细内容]
  • 外盘投资在上海挂牌500万叫卖两家财经网站 [详细内容]
  • Linux系统可卸载内核模块完全指南(中) [详细内容]
  • 有点新发现 [详细内容]
  • 分析:国际移动门户垄断局面正被打破 [详细内容]
  • Linux系统可卸载内核模块完全指南 [详细内容]
  • 网友回答:
    网友:saucer

    what   version   of   mediaplayer   are   you   using?   the   event   should   be   player.playstatechange   and   check   player.playstate   ==   mediaended    
      or   player.playstate   ==   stopped  
       
      see  
      http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay/mmp_sdk/playerobject.asp

    网友:elliot

    windows   media   player有事件处理  
      <script   language="jscript"   event="playstatechange(newstate)"   for="wmplayerid">  
      switch   (newstate){  
      case   1:  
      ...  
      </script>

    .

    讨论区

    Login