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 | 未實作。 |