DrawingContext::DrawVideo Method (MediaPlayer^, Rect)
.NET Framework (current version)
Draws a video into the specified region.
Assembly: PresentationCore (in PresentationCore.dll)
Parameters
- player
-
Type:
System.Windows.Media::MediaPlayer^
The media to draw.
- rectangle
-
Type:
System.Windows::Rect
The region in which to draw player.
Note that the media will be stretched to fit inside the area defined by the rectangle parameter. If rectangle and media have different aspect ratios, distortion will occur. For more control over how media is used to fill an area, use the DrawRectangle command to draw a rectangle and fill it with a VisualBrush that contains media.
MediaPermissionMediaPermission
to display media that you have WebPermission or FileIOPermission access for. Associated enumeration: MediaPermissionImage::SiteOfOriginImage.
to display media that you do not have WebPermission or FileIOPermission access for. Associated enumeration: MediaPermissionImage::SafeImage.
.NET Framework
Available since 3.0
Available since 3.0
Show: