HBCMS更多的中文手册参考:

openState Property

DHTML文档教程

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

dhtml语法

XMLN/A
Scripting[ pos = ] mediaBar.openState

DHTML可能的值

posInteger that receives the open state of the player. Can have one of the following possible values.
0Undefined.
1The player is about to load a new playlist.
2The player is locating the playlist.
3The player is connecting to the server that holds a playlist.
4The player is loading a playlist.
5The player is opening a playlist.
6The player's playlist is open.
7The player's playlist has changed.
8The player is about to load new media.
9The player is locating the media file.
10The player is connecting to the server holding the media file.
11The player is loading a media file.
12The player is opening a media file.
13The media file is open.
14The player is starting codec acquisition.
15The player is ending codec acquisition.
16The player is starting license acquisition.
17The player is ending license acquisition.
18The player is starting individualization.
19The player is ending individualization.
20The player is waiting for media.
21The player is opening a URL whose type is not known.

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