MediaItemDisplayProperties 類別

定義

定義在播放專案時顯示在系統媒體傳輸控制項中的 MediaPlaybackItem 的一組中繼資料。

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
繼承
Object Platform::Object IInspectable MediaItemDisplayProperties
屬性

Windows 需求

裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)

備註

在初始化的MediaPlaybackItem物件上呼叫GetDisplayProperties,以取得MediaItemDisplayProperties類別的實例。 藉由設定所擷取 MediaItemDisplayProperties 物件的屬性,然後呼叫 ApplyDisplayProperties來更新播放專案的顯示內容。

如需與 SMTC 整合的操作指南,請參閱 與系統媒體傳輸控制項整合

屬性

MusicProperties

取得播放專案時,系統媒體傳輸控制項將顯示之音樂專案的中繼資料。

Thumbnail

取得或設定 MediaPlaybackItem 的縮圖影像,此影像會在播放專案時由系統媒體傳輸控制項顯示。

Type

取得或設定值,指出 MediaPlaybackItem所代表的媒體類型,例如音訊或視訊。

VideoProperties

取得播放專案時,系統媒體傳輸控制項將顯示之視訊專案的中繼資料。

方法

ClearAll()

清除所有媒體專案顯示內容的值。

適用於

另請參閱