Share via


PlayState (Windows Embedded CE 6.0)

1/6/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 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.

Requirements

Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

Windows Media Player Properties
PlayStateChange
SendPlayStateChangeEvents

Concepts

Compatibility Modes
Monitoring Stream Status and Network Reception