PlayState 的值
0 =
1=停止
2=暂停中
3=正在播放
4=向前搜索
5=向后搜索
6=缓冲中
7=等待中
8=播放完毕
9=转换曲目
10=准备就绪
1=停止
2=暂停中
3=正在播放
4=向前搜索
5=向后搜索
6=缓冲中
7=等待中
8=播放完毕
9=转换曲目
10=准备就绪
Media Player Player.playState事件
Value
State
Description
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.
if(haotingplay.playState == 1)
播放列表播放时,需要判断.是否播放完毕..
换歌继续播放.
haotingplay.url=url;
haotingplay.controls.play();
haotingplay.controls.play();