第一个问题不知道,第二个问题刚好前几天我也问过
<SCRIPT FOR="MediaPlayer1" EVENT="PlayStateChange(newState)">
switch(newState){
case 8:
//代码
break;
default:
//代码}
</SCRIPT>
其中newstate的代码很多,取你自己要用的,8表示完全播放完毕,1表示停止
0 Undefined Windows Media Player is in an undefined state.
1 Stopped Playback of the current media item is stopped.
2 Paused Playback of the current media item is paused. When a media item is paused, resuming playback begins from the same location.
3 Playing The current media item is playing.
4 ScanForward The current media item is fast forwarding.
5 ScanReverse The current media item is fast rewinding.
6 Buffering The current media item is getting additional data from the server.
7 Waiting Connection is established, but the server is not sending data. Waiting for session to begin.
8 MediaEnded Media item has completed playback.
9 Transitioning Preparing new media item.
10 Ready Ready to begin playing.
11 Reconnecting Reconnecting to stream.
<SCRIPT FOR="MediaPlayer1" EVENT="PlayStateChange(newState)">
switch(newState){
case 8:
//代码
break;
default:
//代码}
</SCRIPT>
其中newstate的代码很多,取你自己要用的,8表示完全播放完毕,1表示停止
0 Undefined Windows Media Player is in an undefined state.
1 Stopped Playback of the current media item is stopped.
2 Paused Playback of the current media item is paused. When a media item is paused, resuming playback begins from the same location.
3 Playing The current media item is playing.
4 ScanForward The current media item is fast forwarding.
5 ScanReverse The current media item is fast rewinding.
6 Buffering The current media item is getting additional data from the server.
7 Waiting Connection is established, but the server is not sending data. Waiting for session to begin.
8 MediaEnded Media item has completed playback.
9 Transitioning Preparing new media item.
10 Ready Ready to begin playing.
11 Reconnecting Reconnecting to stream.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货