MediaPlayer.CurrentState プロパティ

定義

メディア再生の現在の状態を取得します。

注意

MediaPlayer.CurrentState は、バージョン 1607 Windows 10後に変更または使用できない場合があります。 代わりに、 MediaPlayer.PlaybackSession プロパティを使用して MediaPlaybackSession オブジェクトを取得し、 MediaPlaybackSession.PlaybackState プロパティを使用します。

public:
 property MediaPlayerState CurrentState { MediaPlayerState get(); };
MediaPlayerState CurrentState();
/// [get: Windows.Foundation.Metadata.Deprecated("Use PlaybackSession.State instead of CurrentState.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
MediaPlayerState CurrentState();
public MediaPlayerState CurrentState { get; }
public MediaPlayerState CurrentState { [Windows.Foundation.Metadata.Deprecated("Use PlaybackSession.State instead of CurrentState.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")] get; }
var mediaPlayerState = mediaPlayer.currentState;
Public ReadOnly Property CurrentState As MediaPlayerState

プロパティ値

メディア再生の現在の状態。

属性

適用対象