共用方式為


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

未實作。

適用於