Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.42 KB

mediaelement_postersource.md

File metadata and controls

39 lines (25 loc) · 1.42 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.MediaElement.PosterSource
winrt property

Windows.UI.Xaml.Controls.MediaElement.PosterSource

-description

Gets or sets the image source that is used for a placeholder image during MediaElement loading transition states.

-xaml-syntax

<MediaElement PosterSource="imageUri" />

-property-value

An image source for a transition ImageBrush that is applied to the MediaElement content area.

-remarks

A PosterSource is an image, such as a album cover or movie poster, that is displayed in place of video. It provides your MediaElement with a visual representation before the media is loaded, or when the media is audio only.

The PosterSource is displayed in the following situations:

  • When a valid source is not set. For example, Source is not set, Source is set to Null, or the source is invalid (as is the case when a MediaFailed event fires).
  • While media is loading. For example, a valid source is set, but the MediaOpened event has not fired yet.
  • While media is streaming to another device.
  • When the media is audio only.

-examples

-see-also