Share via


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:
 property MediaPlaybackSession ^ PlaybackSession { MediaPlaybackSession ^ get(); };
MediaPlaybackSession PlaybackSession();
public MediaPlaybackSession PlaybackSession { get; }
var mediaPlaybackSession = mediaPlayer.playbackSession;
Public ReadOnly Property PlaybackSession As MediaPlaybackSession

Property Value

The MediaPlaybackSession associated with the MediaPlayer.

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Applies to