MediaPlayerState 枚举

定义

指示玩家可以处于的可能状态。

注意

mediaPlayerState 可能在Windows 10版本 1607 之后更改或不可用。 请改用 MediaPlaybackState

public enum class MediaPlayerState
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class MediaPlayerState
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("Use MediaPlaybackState instead of MediaPlayerState.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
enum class MediaPlayerState
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum MediaPlayerState
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Deprecated("Use MediaPlaybackState instead of MediaPlayerState.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
public enum MediaPlayerState
var value = Windows.Media.Playback.MediaPlayerState.closed
Public Enum MediaPlayerState
继承
MediaPlayerState
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

字段

Buffering 2

媒体播放器正在缓冲内容。

Closed 0

媒体播放器已关闭。

Opening 1

媒体播放器正在打开。

Paused 4

媒体播放器已暂停。

Playing 3

媒体播放器正在播放。

Stopped 5

未实现。

适用于