MediaPlayerElement.PosterSource Property

Definition

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

C#
public ImageSource PosterSource { get; set; }
XAML
<MediaPlayerElement PosterSource="imageUri" />

Property Value

An image source for a transition ImageBrush that is applied to the MediaPlayerElement 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 MediaPlayerElement 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.

Applies to

Produkt Verzie
Windows App SDK 1.2, 1.3, 1.4, 1.5, 1.6