Dela via


MediaItemDisplayProperties Class

Definition

Defines a set of metadata for a MediaPlaybackItem that is displayed in the System Media Transport Controls while the item is playing.

public ref class MediaItemDisplayProperties sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MediaItemDisplayProperties final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MediaItemDisplayProperties
Public NotInheritable Class MediaItemDisplayProperties
Inheritance
Object Platform::Object IInspectable MediaItemDisplayProperties
Attributes

Windows 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 MediaItemDisplayProperties class by calling GetDisplayProperties on an initialized MediaPlaybackItem object. Update the display properties for the playback item by setting the properties of the retrieved MediaItemDisplayProperties object and then calling ApplyDisplayProperties.

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

Properties

MusicProperties

Gets the metadata for a music item that will be displayed by the System Media Transport Controls when the item is played.

Thumbnail

Gets or sets the thumbnail image for a MediaPlaybackItem that will be displayed by the System Media Transport Controls when the item is played.

Type

Gets or sets a value indicating the type of media that is represented by the MediaPlaybackItem, such as audio or video.

VideoProperties

Gets the metadata for a video item that will be displayed by the System Media Transport Controls when the item is played.

Methods

ClearAll()

Clears the values of all media item display properties.

Applies to

See also