MediaPlayer.CurrentState MediaPlayer.CurrentState MediaPlayer.CurrentState MediaPlayer.CurrentState MediaPlayer.CurrentState Property

Definition

Gets the current state of media playback.

Note

MediaPlayer.CurrentState may be altered or unavailable after Windows 10, version 1607. Instead, use the MediaPlayer.PlaybackSession property to get a MediaPlaybackSession object and then use the MediaPlaybackSession.PlaybackState property.

public : MediaPlayerState CurrentState { get; }
MediaPlayerState CurrentState();
public MediaPlayerState CurrentState { get; }
Public ReadOnly Property CurrentState As MediaPlayerState
var mediaPlayerState = mediaPlayer.currentState;

Property Value

The current state of media playback.