MediaPlayer.PlaybackSession MediaPlayer.PlaybackSession MediaPlayer.PlaybackSession MediaPlayer.PlaybackSession MediaPlayer.PlaybackSession Property

Definition

Gets the MediaPlaybackSession associated with the MediaPlayer, which provides information about the state of the current playback session and provides events for responding to changes in playback session state.

public : MediaPlaybackSession PlaybackSession { get; }
MediaPlaybackSession PlaybackSession();
public MediaPlaybackSession PlaybackSession { get; }
Public ReadOnly Property PlaybackSession As MediaPlaybackSession
var mediaPlaybackSession = mediaPlayer.playbackSession;

Property Value

Additional features and requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)