MediaPlayerState 枚举
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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 | 未实现。 |