playState

HTML (DHTML)

playState Property

Internet Development Index

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

Syntax

XMLN/A
Scripting[ pps = ] mediaBar.playState

Possible Values

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

See Also

onopenstatechange, onplaystatechange