Expand Minimize

Player.openState

The openState property retrieves a value indicating the state of the content source.

Syntax

player .openState

Possible Values

This property is a read only Number (long). The C-style enumeration constant can be derived by prefixing the state value with "wmpos". For example, the constant for the PlaylistOpening state is wmposPlaylistOpening.

ValueStateDescription
0UndefinedWindows Media Player is in an undefined state.
1PlaylistChangingNew playlist is about to be loaded.
2PlaylistLocatingWindows Media Player is attempting to locate the playlist. The playlist can be local (library or metafile with an .asx file name extension) or remote.
3PlaylistConnectingConnecting to the playlist.
4PlaylistLoadingPlaylist has been found and is now being retrieved.
5PlaylistOpeningPlaylist has been retrieved and is now being parsed and loaded.
6PlaylistOpenNoMediaPlaylist is open.
7PlaylistChangedA new playlist has been assigned to currentPlaylist.
8MediaChangingA new media item is about to be loaded.
9MediaLocatingWindows Media Player is locating the media item. The file can be local or remote.
10MediaConnectingConnecting to the server that holds the media item.
11MediaLoadingMedia item has been located and is now being retrieved.
12MediaOpeningMedia item has been retrieved and is now being opened.
13MediaOpenMedia item is now open.
14BeginCodecAcquisitionStarting codec acquisition.
15EndCodecAcquisitionCodec acquisition is complete.
16BeginLicenseAcquisitionAcquiring a license to play DRM protected content.
17EndLicenseAcquisitionLicense to play DRM protected content has been acquired.
18BeginIndividualizationBegin DRM Individualization.
19EndIndividualizationDRM individualization has been completed.
20MediaWaitingWaiting for media item.
21OpeningUnknownURLOpening a URL with an unknown type.

 

Remarks

Windows Media Player states are not guaranteed to occur in any particular order. Furthermore, not every state necessarily occurs during a sequence of events. You should not write code that relies upon state order.

Requirements

Version

Windows Media Player version 7.0 or later.

DLL

Wmp.dll

See also

Player Object
Player.OpenStateChange Event

 

 

Community Additions

ADD
Show:
© 2014 Microsoft