MediaPlaybackCommandManager MediaPlaybackCommandManager MediaPlaybackCommandManager MediaPlaybackCommandManager MediaPlaybackCommandManager Class

Definition

Specifies the behavior of and receives events from the System Media Transport Controls. Use this class to customize the interaction between a MediaPlayer and the System Media Transport Controls.

public : sealed class MediaPlaybackCommandManager : IMediaPlaybackCommandManager
struct winrt::Windows::Media::Playback::MediaPlaybackCommandManager : IMediaPlaybackCommandManager
public sealed class MediaPlaybackCommandManager : IMediaPlaybackCommandManager
Public NotInheritable Class MediaPlaybackCommandManager Implements IMediaPlaybackCommandManager
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

Get an instance of the MediaPlaybackCommandManager by accessing the CommandManager property of a MediaPlayer object.

For how-to guidance for integrating with the SMTC, see Integrate with the System Media Transport Controls.

Properties

AutoRepeatModeBehavior AutoRepeatModeBehavior AutoRepeatModeBehavior AutoRepeatModeBehavior AutoRepeatModeBehavior

Gets an object that defines the behavior when the Auto-repeat control in the System Media Transport Controls is toggled.

FastForwardBehavior FastForwardBehavior FastForwardBehavior FastForwardBehavior FastForwardBehavior

Gets an object that defines the behavior when the Fast-forward button in the System Media Transport Controls is tapped.

IsEnabled IsEnabled IsEnabled IsEnabled IsEnabled

Gets or sets a value indicating whether the MediaPlaybackCommandManager is enabled.

MediaPlayer MediaPlayer MediaPlayer MediaPlayer MediaPlayer

Gets the MediaPlayer instance associated with the MediaPlaybackCommandManager.

NextBehavior NextBehavior NextBehavior NextBehavior NextBehavior

Gets an object that defines the behavior when the Next button in the System Media Transport Controls is tapped.

PauseBehavior PauseBehavior PauseBehavior PauseBehavior PauseBehavior

Gets an object that defines the behavior when the Pause button in the System Media Transport Controls is tapped.

PlayBehavior PlayBehavior PlayBehavior PlayBehavior PlayBehavior

Gets an object that defines the behavior when the Play button in the System Media Transport Controls is tapped.

PositionBehavior PositionBehavior PositionBehavior PositionBehavior PositionBehavior

Gets an object that defines the behavior when the playback position control in the System Media Transport Controls is moved.

PreviousBehavior PreviousBehavior PreviousBehavior PreviousBehavior PreviousBehavior

Gets an object that defines the behavior when the Previous button in the System Media Transport Controls is tapped.

RateBehavior RateBehavior RateBehavior RateBehavior RateBehavior

Gets an object that defines the behavior when the playback rate is changed using the System Media Transport Controls.

RewindBehavior RewindBehavior RewindBehavior RewindBehavior RewindBehavior

Gets an object that defines the behavior when the Rewind button in the System Media Transport Controls is tapped.

ShuffleBehavior ShuffleBehavior ShuffleBehavior ShuffleBehavior ShuffleBehavior

Gets an object that defines the behavior when the Shuffle button in the System Media Transport Controls is toggled.

Events

AutoRepeatModeReceived AutoRepeatModeReceived AutoRepeatModeReceived AutoRepeatModeReceived AutoRepeatModeReceived

Occurs when the command manager receives a command from the Auto-repeat control of the System Media Transport Controls.

FastForwardReceived FastForwardReceived FastForwardReceived FastForwardReceived FastForwardReceived

Occurs when the command manager receives a command from the Fast-forward button of the System Media Transport Controls.

NextReceived NextReceived NextReceived NextReceived NextReceived

Occurs when the command manager receives a command from the Next button of the System Media Transport Controls.

PauseReceived PauseReceived PauseReceived PauseReceived PauseReceived

Occurs when the command manager receives a command from the Pause button of the System Media Transport Controls.

PlayReceived PlayReceived PlayReceived PlayReceived PlayReceived

Occurs when the command manager receives a command from the Play control of the System Media Transport Controls.

PositionReceived PositionReceived PositionReceived PositionReceived PositionReceived

Occurs when the command manager receives a command changing the current playback position from the System Media Transport Controls.

PreviousReceived PreviousReceived PreviousReceived PreviousReceived PreviousReceived

Occurs when the command manager receives a command from the Previous button of the System Media Transport Controls.

RateReceived RateReceived RateReceived RateReceived RateReceived

Occurs when the command manager receives a command changing the current playback rate from the System Media Transport Controls.

RewindReceived RewindReceived RewindReceived RewindReceived RewindReceived

Occurs when the command manager receives a command from the Rewind button of the System Media Transport Controls.

ShuffleReceived ShuffleReceived ShuffleReceived ShuffleReceived ShuffleReceived

Occurs when the command manager receives a command from the Shuffle control of the System Media Transport Controls.

See Also