Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
MediaPlayer.PlaybackSession Property
Definition
- Namespace:
- Windows.Media.Playback
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
| Requirements | Description |
|---|---|
| Device family |
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced in v3.0)
|
Applies to
Feedback
Was this page helpful?
