MediaPlayerPresenter
MediaPlayerPresenter
MediaPlayerPresenter
MediaPlayerPresenter
Class
Definition
Represents an object that displays a MediaPlayer.
public : class MediaPlayerPresenter : FrameworkElement, IMediaPlayerPresenterpublic class MediaPlayerPresenter : FrameworkElement, IMediaPlayerPresenterPublic Class MediaPlayerPresenter Inherits FrameworkElement Implements IMediaPlayerPresenter// This API is not available in Javascript.
<MediaPlayerPresenter .../>
- Inheritance
-
MediaPlayerPresenterMediaPlayerPresenterMediaPlayerPresenterMediaPlayerPresenter
- Attributes
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v3)
|
Inherited Members
Inherited properties
Inherited events
Inherited methods
Remarks
MediaPlayerPresenter is intended to be used in the control template of the MediaPlayerElement control. You will typically use MediaPlayerElement in your app rather than MediaPlayerPresenter.
Constructors
MediaPlayerPresenter() MediaPlayerPresenter() MediaPlayerPresenter() MediaPlayerPresenter()
Initializes a new instance of the MediaPlayerPresenter class.
public : MediaPlayerPresenter()public MediaPlayerPresenter()Public Sub New()// This API is not available in Javascript.
Properties
IsFullWindow IsFullWindow IsFullWindow IsFullWindow
Gets or sets a value that specifies if the MediaPlayerPresenter is rendering in full window mode.
public : PlatForm::Boolean IsFullWindow { get; set; }public bool IsFullWindow { get; set; }Public ReadWrite Property IsFullWindow As bool// This API is not available in Javascript.
<MediaPlayerPresenter IsFullWindow="bool" />
- Value
- PlatForm::Boolean bool bool bool
true if the MediaPlayerPresenter is in full window mode; otherwise, false. The default is false.
IsFullWindowProperty IsFullWindowProperty IsFullWindowProperty IsFullWindowProperty
Identifies the IsFullWindow dependency property.
public : static DependencyProperty IsFullWindowProperty { get; }public static DependencyProperty IsFullWindowProperty { get; }Public Static ReadOnly Property IsFullWindowProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the IsFullWindow dependency property.
MediaPlayer MediaPlayer MediaPlayer MediaPlayer
Gets or sets the MediaPlayer instance used to render media.
public : MediaPlayer MediaPlayer { get; set; }public MediaPlayer MediaPlayer { get; set; }Public ReadWrite Property MediaPlayer As MediaPlayer// This API is not available in Javascript.
The MediaPlayer instance used to render media.
MediaPlayerProperty MediaPlayerProperty MediaPlayerProperty MediaPlayerProperty
Identifies the MediaPlayer dependency property.
public : static DependencyProperty MediaPlayerProperty { get; }public static DependencyProperty MediaPlayerProperty { get; }Public Static ReadOnly Property MediaPlayerProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the MediaPlayer dependency property.
Stretch Stretch Stretch Stretch
Gets or sets a value that describes how an MediaPlayerPresenter should be stretched to fill the destination rectangle.
public : Stretch Stretch { get; set; }public Stretch Stretch { get; set; }Public ReadWrite Property Stretch As Stretch// This API is not available in Javascript.
<MediaPlayerPresenter Stretch="stretchMemberName" />
A value of the Stretch enumeration that specifies how the source visual media is rendered. The default value is Uniform.
Remarks
Here's what the Stretch values represent for MediaPlayerPresenter content:
- None: The original size of the content is preserved.
- Fill: The content is resized to fill the destination dimensions. The aspect ratio of the video is not preserved.
- UniformToFill: Uniformly stretches the MediaPlayerPresenter to fill the available layout space while preserving the aspect ratio of the content. If the aspect ratio of the destination rectangle differs from the source, the source content is clipped to fit the destination dimensions.
- Uniform: Uniformly stretches the MediaPlayerPresenter to fill the layout space while preserve the aspect ratio of the image. This will ensure that the entire image is displayed, undistorted and not cropped. This may result in letterboxing or pillarboxing on the top or sides of the image, depending on the aspect ratio of the content.
StretchProperty StretchProperty StretchProperty StretchProperty
Identifies the Stretch dependency property.
public : static DependencyProperty StretchProperty { get; }public static DependencyProperty StretchProperty { get; }Public Static ReadOnly Property StretchProperty As DependencyProperty// This API is not available in Javascript.
The identifier for the Stretch dependency property.