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:
Constant | Description |
Buffering | The media is buffering. |
Finished | The media has finished playing. |
Paused | The media is paused. |
Playing | The media is playing. |
Stopped | The media is stopped or has finished playing. |
Undefined | The 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