HBCMS更多的中文手册参考:

playState Property

DHTML文档教程

Retrieves an integer that indicates the play state of the Media Bar player.

dhtml语法

XMLN/A
Scripting[ pps = ] mediaBar.playState

DHTML可能的值

ppsInteger that receives the play state of the player. Can have one of the following possible values.
0The playback state is undefined.
1Playback is stopped.
2Playback is paused.
3The player is playing a stream.
4The player is scanning a stream forward.
5The player is scanning a stream in reverse.
6The player is buffering media.
7The player is waiting for streaming data.
8The player has reached the end of the media.
9The player is preparing new media.
10The player is ready to begin playback.

The property is read-only. The property has no default value.

Remarks

Developers should keep in mind that openstate and playstate return integers, without descriptive information about the state.

because the mediabar behavior is an implementation of the microsoft windows media® player, some media bar members are essentially the same as those used by the windows media player 7 and windows media player 8, notably the onopenstatechange and onplaystatechange events and the openstate, playstate, and enabled properties. the media bar?b>openstate and playstate properties, in fact, are passed to the behavior from corresponding windows media player properties for windows media player 7 and windows media player 8. later versions of the windows media player might provide a richer set of values for openstate and playstate. for more information about the windows media player object model, see the player object reference and the windows media player 7.1 sdk.

for an example of scripting with the openstate and playstate properties, see the onopenstatechange and onplaystatechange events.

applies to

mediaBar

更多语法参考

onopenstatechange, onplaystatechange