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 ref class MediaPlaybackCommandManager sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class MediaPlaybackCommandManager final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.DualApiPartition(version=167772160)]
class MediaPlaybackCommandManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class MediaPlaybackCommandManager
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.DualApiPartition(version=167772160)]
public sealed class MediaPlaybackCommandManager
Public NotInheritable Class MediaPlaybackCommandManager
Inheritance
MediaPlaybackCommandManager
Attributes

Windows 10 requirements

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

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

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

FastForwardBehavior

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

IsEnabled

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

MediaPlayer

Gets the MediaPlayer instance associated with the MediaPlaybackCommandManager.

NextBehavior

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

PauseBehavior

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

PlayBehavior

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

PositionBehavior

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

PreviousBehavior

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

RateBehavior

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

RewindBehavior

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

ShuffleBehavior

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

Events

AutoRepeatModeReceived

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

FastForwardReceived

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

NextReceived

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

PauseReceived

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

PlayReceived

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

PositionReceived

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

PreviousReceived

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

RateReceived

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

RewindReceived

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

ShuffleReceived

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

Applies to

See also