Dela via


MediaItemDisplayProperties.Type Property

Definition

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

public:
 property MediaPlaybackType Type { MediaPlaybackType get(); void set(MediaPlaybackType value); };
MediaPlaybackType Type();

void Type(MediaPlaybackType value);
public MediaPlaybackType Type { get; set; }
var mediaPlaybackType = mediaItemDisplayProperties.type;
mediaItemDisplayProperties.type = mediaPlaybackType;
Public Property Type As MediaPlaybackType

Property Value

A value indicating the type of media that is represented by the MediaPlaybackItem.

Remarks

Apps should set a value for the Type property even if they aren't supplying other media metadata to be displayed by the System Media Transport Controls. This value helps the system handle your media content correctly, including preventing the screen saver from activating during playback.

Applies to