Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This property contains the state of the Windows Media Player operation. This property is read-only.

Compatibility:Windows Media Player

Syntax

[ 
lState = ] MediaPlayer.PlayState

Parameters

lState

Long value indicating the play state. The following table shows the possible values.

Value Visual Basic constant Description

0

MpStopped

Playback is stopped.

1

MpPaused

Playback is paused.

2

MpPlaying

Stream is playing.

3

MpWaiting

Waiting for stream to begin.

4

MpScanForward

Stream is scanning forward.

5

MpScanReverse

Stream is scanning in reverse.

6

MpSkipForward

Skipping to next.

7

MpSkipReverse

Skipping to previous.

8

MpClosed

Stream is not open.

Remarks

Retrieve this property to determine the status of an open clip.

Checking this property from a script after an asynchronous operation has been started will produce erratic results until the asynchronous operation has been completed.

The asynchronous operation will be complete when the ReadyStateproperty equals 4.

If the value of the SendPlayStateChangeEventsproperty is true, Windows Media Player control fires a PlayStateChangeevent each time the PlayStateproperty changes.

Requirements

Windows Embedded CE Windows CE 3.0 and later

See Also