PlayState Enumeration

Defines values that indicate the play state of the current media. These values are used by the MediaTransport.PlayState property.

Syntax

public enum PlayState

The PlayState enumeration defines the following constants:

ConstantDescription
BufferingThe media is buffering.
FinishedThe media has finished playing.
PausedThe media is paused.
PlayingThe media is playing.
StoppedThe media is stopped or has finished playing.
UndefinedThe play state of the media is unknown.

Remarks

In Windows 7, Stopped is returned when media has finished playing and when it has stopped. You can determine which state is correct by comparing the MediaTransport.Position property and MediaMetadata duration value; if they are equal, the media has finished playing.

Requirements

Reference: Microsoft.MediaCenter

Namespace: Microsoft.MediaCenter

Assembly: Microsoft.MediaCenter.dll

Platform: Windows Vista Ultimate, Windows Vista Home Premium, and later

See Also

Page view tracker