PlayState

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 ReadyState property equals 4.

If the value of the SendPlayStateChangeEvents property is true, Windows Media Player control fires a PlayStateChange event each time the PlayState property changes.

See Also

SendPlayStateChangeEvents, PlayStateChange, Monitoring Stream Status and Network Reception

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.