Media Player播放完有触发scipt事件么?怎么捕获?
Posted on 八月 16rd, 2007 由 admin
windows media player 有事件处理么?
比如播放完毕可以设诸如onplaystop到某个script函数处理?
能给个具体的例子吗?
谢谢!
推荐阅读
网友: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>


讨论区