Microsoft Windows CE 3.0  

PlayState

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.

Retrieves a value indicating the state of the Microsoft Windows Media Player operation.

Compatibility:Windows Media Player

[
lState
= ] MediaPlayer.PlayState

Parameters

lState
Long value indicating the play state. It can have one of the following 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.

This property is read-only.

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.

See Also

SendPlayStateChangeEvents, PlayStateChange, Monitoring Stream Status and Network Reception