Windows.Media.Playback
TOC
Collapse the table of content
Expand the table of content

Windows.Media.Playback namespace

Provides functionality for playing media files from foreground and background tasks.

Members

The Windows.Media.Playback namespace has these types of members:

Classes

ClassDescription
BackgroundMediaPlayer Provides access to the media player while it is running in the background.
CurrentMediaPlaybackItemChangedEventArgs Provides data for the MediaPlaybackList::CurrentItemChanged event.
MediaBreak Represents a set of one or more MediaPlaybackItem objects that are played before, after, or at specified points during the playback of another MediaPlaybackItem.
MediaBreakEndedEventArgs Provides data for the MediaBreakManager.BreakEnded event, which occurs when the playback of a MediaBreak has ended.
MediaBreakManager Provides information about and control over the MediaBreak objects associated with a MediaPlayer. This class provides events for when a media break starts playback, ends playback, is skipped, or is seeked over. You can also use this class to determine the currently playing MediaBreak or to start or skip playback of a MediaBreak.
MediaBreakSchedule Represents a set of MediaBreak objects associated with a MediaPlaybackItem and the positions within the playback of the item that the media breaks are played.
MediaBreakSeekedOverEventArgs Provides data for the MediaBreakManager.BreaksSeekedOver event, which occurs when the user seeks the media playback position past one or more pending media breaks.
MediaBreakSkippedEventArgs Provides data for the MediaBreakManager.BreakSkipped event, which occurs when the playback of a MediaBreak is skipped.
MediaBreakStartedEventArgs Provides data for the MediaBreakManager.BreakStarted event, which occurs when the playback of a MediaBreak starts.
MediaItemDisplayProperties Defines a set of metadata for a MediaPlaybackItem that is displayed in the System Media Transport Controls while the item is playing.
MediaPlaybackAudioTrackList Represents a read-only list of AudioTrack objects, of which a single track can be selected at one time.
MediaPlaybackCommandManager Specifies the behavior of and receives events from the System Media Transport Controls.
MediaPlaybackCommandManagerAutoRepeatModeReceivedEventArgs Provides data or the MediaPlaybackCommandManager.AutoRepeatModeReceived event, which occurs when the command manager receives a command from the Auto-repeat control of the System Media Transport Controls.
MediaPlaybackCommandManagerCommandBehavior For use with a MediaPlaybackCommandManager object, this class allows you to enable and disable System Media Transport Controls commands and allows you to respond to changes in the enabled state of a command.
MediaPlaybackCommandManagerFastForwardReceivedEventArgs Provides data or the MediaPlaybackCommandManager.FastForwardReceived event, which occurs when the command manager receives a command from the Fast-forward button of the System Media Transport Controls.
MediaPlaybackCommandManagerNextReceivedEventArgs Provides data or the MediaPlaybackCommandManager.NextReceived event, which occurs when the command manager receives a command from the Next button of the System Media Transport Controls.
MediaPlaybackCommandManagerPauseReceivedEventArgs Provides data or the MediaPlaybackCommandManager.PauseReceived event, which occurs when the command manager receives a command from the Pause button of the System Media Transport Controls.
MediaPlaybackCommandManagerPlayReceivedEventArgs Provides data or the MediaPlaybackCommandManager.PlayReceived event, which occurs when the command manager receives a command from the Play button of the System Media Transport Controls.
MediaPlaybackCommandManagerPositionReceivedEventArgs Provides data or the MediaPlaybackCommandManager.PositionReceived event, which occurs when the command manager receives a command changing the current position from the System Media Transport Controls.
MediaPlaybackCommandManagerPreviousReceivedEventArgs Provides data or the MediaPlaybackCommandManager.PreviousReceived event, which occurs when the command manager receives a command from the Play button of the System Media Transport Controls.
MediaPlaybackCommandManagerRateReceivedEventArgs Provides data or the MediaPlaybackCommandManager.RateReceived event, which occurs when the command manager receives a command changing the current playback rate from the System Media Transport Controls.
MediaPlaybackCommandManagerRewindReceivedEventArgs Provides data or the MediaPlaybackCommandManager.RewindReceived event, which occurs when the command manager receives a command from the Rewind button of the System Media Transport Controls.
MediaPlaybackCommandManagerShuffleReceivedEventArgs Provides data or the ShuffleReceived event, which occurs when the command manager receives a command from the Shuffle control of the System Media Transport Controls.
MediaPlaybackItem Represents a media item that can be played back.
MediaPlaybackItemError Represents an error that occurred trying to resolve a MediaPlaybackItem.
MediaPlaybackItemFailedEventArgs Provides data for the MediaPlaybackList::ItemFailed event.
MediaPlaybackItemOpenedEventArgs Provides data for the MediaPlaybackList::ItemOpened event.
MediaPlaybackList Represents a list of MediaPlaybackItem objects that can be played back.
MediaPlaybackSession Provides information about the state of the current playback session of a MediaPlayer and provides events for responding to changes in playback session state.
MediaPlaybackTimedMetadataTrackList Represents a read-only list of TimedMetadataTrack objects.
MediaPlaybackVideoTrackList Represents a read-only list of VideoTrack objects, of which a single track can be selected at one time.
MediaPlayer Provides access to media playback functionality such as play, pause, fast-forward, rewind, and volume.
MediaPlayerDataReceivedEventArgs Provides data for the MessageReceivedFromBackground and MessageReceivedFromForeground events.
MediaPlayerFailedEventArgs Provides the data for MediaFailed events.
MediaPlayerRateChangedEventArgs Provides the data for MediaPlayerRateChanged events.
MediaPlayerSurface Provides access to a ICompositionSurface that is shared between a MediaPlayer and a Compositor to enable the rendering of MediaPlayer content using the Windows.UI.Composition APIs without requiring the use of the XAML framework.
PlaybackMediaMarker Represents a marker at specific location in a media stream time-line.
PlaybackMediaMarkerReachedEventArgs Provides data for PlaybackMediaMarkerReached events.
PlaybackMediaMarkerSequence An ordered collection of PlaybackMediaMarker objects.
TimedMetadataPresentationModeChangedEventArgs Provides data for the MediaPlaybackTimedMetadataTrackList::PresentationModeChanged event.

 

Enumerations

The Windows.Media.Playback namespace has these enumerations.

EnumerationDescription
FailedMediaStreamKind Indicates the type of media stream that failed.
MediaBreakInsertionMethod Specifies the method that is used to insert the MediaBreak playback into the playback of the MediaPlaybackItem to which it belongs.
MediaCommandEnablingRule Specifies a rule for enabling a System Media Transport Controls command.
MediaPlaybackItemErrorCode Specifies the type of error that occurred while opening a MediaPlaybackItem.
MediaPlaybackState Specifies the playback state of a MediaPlaybackSession. MediaPlaybackState may be altered or unavailable after Windows 10, version 1607. Use MediaPlayerState instead.
MediaPlayerAudioCategory Specifies the types of audio that can be played by a media player.
MediaPlayerAudioDeviceType Describes the primary usage of the device that is being used to play back audio. This value is used by MediaPlayer::AudioDeviceType.
MediaPlayerError Indicates possible media player errors.
MediaPlayerState Indicates the possible states that the player can be in.
StereoscopicVideoRenderMode Specifies the current stereoscopic render mode for a MediaPlayer.
TimedMetadataTrackPresentationMode Specifies the presentation mode of a timed metadata track.

 

Interfaces

The Windows.Media.Playback namespace defines these interfaces.

InterfaceDescription
IMediaEnginePlaybackSource The interface implemented by classes that are Media Engine playback sources.
IMediaPlaybackSource A marker interface that identifies the implementing class as a playback source.

 

See also

Video playback sample (Windows 10)

 

 

Show:
© 2016 Microsoft