Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
984 lines (925 sloc) 54.6 KB
<Type Name="MediaPlayer" FullName="System.Windows.Media.MediaPlayer">
<TypeSignature Language="C#" Value="public class MediaPlayer : System.Windows.Media.Animation.Animatable" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit MediaPlayer extends System.Windows.Media.Animation.Animatable" />
<TypeSignature Language="DocId" Value="T:System.Windows.Media.MediaPlayer" />
<TypeSignature Language="VB.NET" Value="Public Class MediaPlayer&#xA;Inherits Animatable" />
<TypeSignature Language="C++ CLI" Value="public ref class MediaPlayer : System::Windows::Media::Animation::Animatable" />
<TypeSignature Language="F#" Value="type MediaPlayer = class&#xA; inherit Animatable&#xA; interface DUCE.IResource" />
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Windows.Media.Animation.Animatable</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Provides media playback for drawings.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Although you can declare an instance of this class in [!INCLUDE[TLA#tla_xaml](~/includes/tlasharptla-xaml-md.md)], you cannot load and play its media without using code. To play media in [!INCLUDE[TLA2#tla_xaml](~/includes/tla2sharptla-xaml-md.md)] only, use a <xref:System.Windows.Controls.MediaElement>. Also, if you declare an instance in [!INCLUDE[TLA2#tla_xaml](~/includes/tla2sharptla-xaml-md.md)], the only practical use is to fill property element syntax for the <xref:System.Windows.Media.VideoDrawing.Player%2A> property.
When distributing media with your application, you cannot use a media file as a project resource. In your project file, you must instead set the media type to `Content` and set `CopyToOutputDirectory` to `PreserveNewest` or `Always`.
<xref:System.Windows.Media.MediaPlayer> can be used in two different modes, depending on what is driving the player: independent mode or clock mode. In independent mode, the <xref:System.Windows.Media.MediaPlayer> is analogous to an image and the media opened through the <xref:System.Windows.Media.MediaPlayer.Open%2A> method drives playback. In Clock mode, the <xref:System.Windows.Media.MediaPlayer> can be thought of as a target for an animation, and thus it will have corresponding <xref:System.Windows.Media.Animation.Timeline> and <xref:System.Windows.Media.Animation.Clock> entries in the Timing tree which controls playback. For more information on media modes, see the [Multimedia Overview](~/docs/framework/wpf/graphics-multimedia/multimedia-overview.md).
<xref:System.Windows.Media.MediaPlayer> is different from a <xref:System.Windows.Controls.MediaElement> in that it is not a control that can be added directly to the [!INCLUDE[TLA#tla_ui](~/includes/tlasharptla-ui-md.md)] of an application. To display media loaded using <xref:System.Windows.Media.MediaPlayer>, a <xref:System.Windows.Media.VideoDrawing> or <xref:System.Windows.Media.DrawingContext> must be used.
## Examples
[How to: Play Media using a VideoDrawing](~/docs/framework/wpf/graphics-multimedia/how-to-play-media-using-a-videodrawing.md)
]]></format>
</remarks>
<altmember cref="T:System.Windows.Media.Drawing" />
<altmember cref="T:System.Windows.Media.VideoDrawing" />
<altmember cref="T:System.Windows.Media.DrawingContext" />
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public MediaPlayer ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.MediaPlayer.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; MediaPlayer();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Media.MediaPlayer" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Balance">
<MemberSignature Language="C#" Value="public double Balance { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance float64 Balance" />
<MemberSignature Language="DocId" Value="P:System.Windows.Media.MediaPlayer.Balance" />
<MemberSignature Language="VB.NET" Value="Public Property Balance As Double" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property double Balance { double get(); void set(double value); };" />
<MemberSignature Language="F#" Value="member this.Balance : double with get, set" Usage="System.Windows.Media.MediaPlayer.Balance" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Double</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the balance between the left and right speaker volumes.</summary>
<value>The ratio of volume across the left and right speakers in a range between -1 and 1. The default is 0.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
A value of -1 represents 100% of the left side speakers and 1 represents 100% of the right side speakers.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="BufferingEnded">
<MemberSignature Language="C#" Value="public event EventHandler BufferingEnded;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler BufferingEnded" />
<MemberSignature Language="DocId" Value="E:System.Windows.Media.MediaPlayer.BufferingEnded" />
<MemberSignature Language="VB.NET" Value="Public Custom Event BufferingEnded As EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event EventHandler ^ BufferingEnded;" />
<MemberSignature Language="F#" Value="member this.BufferingEnded : EventHandler " Usage="member this.BufferingEnded : System.EventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when buffering has finished.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="BufferingProgress">
<MemberSignature Language="C#" Value="public double BufferingProgress { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance float64 BufferingProgress" />
<MemberSignature Language="DocId" Value="P:System.Windows.Media.MediaPlayer.BufferingProgress" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property BufferingProgress As Double" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property double BufferingProgress { double get(); };" />
<MemberSignature Language="F#" Value="member this.BufferingProgress : double" Usage="System.Windows.Media.MediaPlayer.BufferingProgress" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Double</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the percentage of buffering completed for streaming content.</summary>
<value>The percentage of buffering completed for streaming content represented in a value between 0 and 1.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="BufferingStarted">
<MemberSignature Language="C#" Value="public event EventHandler BufferingStarted;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler BufferingStarted" />
<MemberSignature Language="DocId" Value="E:System.Windows.Media.MediaPlayer.BufferingStarted" />
<MemberSignature Language="VB.NET" Value="Public Custom Event BufferingStarted As EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event EventHandler ^ BufferingStarted;" />
<MemberSignature Language="F#" Value="member this.BufferingStarted : EventHandler " Usage="member this.BufferingStarted : System.EventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when buffering has started.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="CanPause">
<MemberSignature Language="C#" Value="public bool CanPause { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool CanPause" />
<MemberSignature Language="DocId" Value="P:System.Windows.Media.MediaPlayer.CanPause" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property CanPause As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool CanPause { bool get(); };" />
<MemberSignature Language="F#" Value="member this.CanPause : bool" Usage="System.Windows.Media.MediaPlayer.CanPause" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value indicating whether the media can be paused.</summary>
<value>true if the media can be paused; otherwise, false.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Clock">
<MemberSignature Language="C#" Value="public System.Windows.Media.MediaClock Clock { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Windows.Media.MediaClock Clock" />
<MemberSignature Language="DocId" Value="P:System.Windows.Media.MediaPlayer.Clock" />
<MemberSignature Language="VB.NET" Value="Public Property Clock As MediaClock" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Windows::Media::MediaClock ^ Clock { System::Windows::Media::MediaClock ^ get(); void set(System::Windows::Media::MediaClock ^ value); };" />
<MemberSignature Language="F#" Value="member this.Clock : System.Windows.Media.MediaClock with get, set" Usage="System.Windows.Media.MediaPlayer.Clock" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Media.MediaClock</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the <see cref="T:System.Windows.Media.MediaClock" /> associated with the <see cref="T:System.Windows.Media.MediaTimeline" /> to be played.</summary>
<value>The clock associated with the <see cref="T:System.Windows.Media.MediaTimeline" /> to be played. The default is null.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Setting this property tells the <xref:System.Windows.Media.MediaPlayer> to be clock driven and will utilize the timing engine, placing the player in Clock mode. Any media that is playing is stopped and the <xref:System.Uri> associated with the new clock is opened.
When the player is in clock mode, seeking using <xref:System.Windows.Media.MediaPlayer.Position%2A> or calling the <xref:System.Windows.Media.MediaPlayer.Play%2A>, <xref:System.Windows.Media.MediaPlayer.Pause%2A>, or <xref:System.Windows.Media.MediaPlayer.Stop%2A> methods will throw an <xref:System.InvalidOperationException>. These operations are only available when the player <xref:System.Windows.Media.MediaPlayer.Clock%2A> is null.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="CloneCore">
<MemberSignature Language="C#" Value="protected override void CloneCore (System.Windows.Freezable sourceFreezable);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void CloneCore(class System.Windows.Freezable sourceFreezable) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.MediaPlayer.CloneCore(System.Windows.Freezable)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Sub CloneCore (sourceFreezable As Freezable)" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; override void CloneCore(System::Windows::Freezable ^ sourceFreezable);" />
<MemberSignature Language="F#" Value="override this.CloneCore : System.Windows.Freezable -&gt; unit" Usage="mediaPlayer.CloneCore sourceFreezable" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="sourceFreezable" Type="System.Windows.Freezable" />
</Parameters>
<Docs>
<param name="sourceFreezable">The <see cref="T:System.Windows.Media.MediaPlayer" /> to clone.</param>
<summary>Makes this instance a deep copy of the specified <see cref="T:System.Windows.Media.MediaPlayer" />. When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method is called by the <xref:System.Windows.Freezable.Clone%2A> method and should not be called directly from your code, except when calling the base implementation while overriding this method. To create a modifiable copy of the current object, call <xref:System.Windows.Freezable.Clone%2A> instead of calling this method directly.
For more information, see <xref:System.Windows.Freezable.CloneCore%2A?displayProperty=nameWithType>.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="CloneCurrentValueCore">
<MemberSignature Language="C#" Value="protected override void CloneCurrentValueCore (System.Windows.Freezable sourceFreezable);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void CloneCurrentValueCore(class System.Windows.Freezable sourceFreezable) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.MediaPlayer.CloneCurrentValueCore(System.Windows.Freezable)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Sub CloneCurrentValueCore (sourceFreezable As Freezable)" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; override void CloneCurrentValueCore(System::Windows::Freezable ^ sourceFreezable);" />
<MemberSignature Language="F#" Value="override this.CloneCurrentValueCore : System.Windows.Freezable -&gt; unit" Usage="mediaPlayer.CloneCurrentValueCore sourceFreezable" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="sourceFreezable" Type="System.Windows.Freezable" />
</Parameters>
<Docs>
<param name="sourceFreezable">The <see cref="T:System.Windows.Media.MediaPlayer" /> to clone.</param>
<summary>Makes this instance a modifiable deep copy of the specified <see cref="T:System.Windows.Media.MediaPlayer" /> using current property values. Resource references, data bindings, and animations are not copied, but their current values are.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method is called by the <xref:System.Windows.Freezable.CloneCurrentValue%2A> method and should not be called directly from your code, except when calling the base implementation while overriding this method. To create a modifiable copy of the current object, call <xref:System.Windows.Freezable.CloneCurrentValue%2A> instead of calling this method directly.
For more information, see <xref:System.Windows.Freezable.CloneCurrentValueCore%2A?displayProperty=nameWithType>.
]]></format>
</remarks>
<altmember cref="M:System.Windows.Freezable.CloneCurrentValueCore(System.Windows.Freezable)" />
</Docs>
</Member>
<Member MemberName="Close">
<MemberSignature Language="C#" Value="public void Close ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Close() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.MediaPlayer.Close" />
<MemberSignature Language="VB.NET" Value="Public Sub Close ()" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; void Close();" />
<MemberSignature Language="F#" Value="member this.Close : unit -&gt; unit" Usage="mediaPlayer.Close " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Closes the underlying media.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Media.MediaPlayer> can be opened again by calling the <xref:System.Windows.Media.MediaPlayer.Open%2A> method.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="CreateInstanceCore">
<MemberSignature Language="C#" Value="protected override System.Windows.Freezable CreateInstanceCore ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance class System.Windows.Freezable CreateInstanceCore() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.MediaPlayer.CreateInstanceCore" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function CreateInstanceCore () As Freezable" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; override System::Windows::Freezable ^ CreateInstanceCore();" />
<MemberSignature Language="F#" Value="override this.CreateInstanceCore : unit -&gt; System.Windows.Freezable" Usage="mediaPlayer.CreateInstanceCore " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Freezable</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Creates a new <see cref="T:System.Windows.Media.MediaPlayer" /> instance.</summary>
<returns>A new <see cref="T:System.Windows.Media.MediaPlayer" /> instance.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="DownloadProgress">
<MemberSignature Language="C#" Value="public double DownloadProgress { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance float64 DownloadProgress" />
<MemberSignature Language="DocId" Value="P:System.Windows.Media.MediaPlayer.DownloadProgress" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property DownloadProgress As Double" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property double DownloadProgress { double get(); };" />
<MemberSignature Language="F#" Value="member this.DownloadProgress : double" Usage="System.Windows.Media.MediaPlayer.DownloadProgress" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Double</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the percentage of download progress for content located at a remote server.</summary>
<value>The percentage of download progress for content located at a remote server represented by a value between 0 and 1. The default is 0.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetAsFrozenCore">
<MemberSignature Language="C#" Value="protected override void GetAsFrozenCore (System.Windows.Freezable sourceFreezable);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void GetAsFrozenCore(class System.Windows.Freezable sourceFreezable) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.MediaPlayer.GetAsFrozenCore(System.Windows.Freezable)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Sub GetAsFrozenCore (sourceFreezable As Freezable)" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; override void GetAsFrozenCore(System::Windows::Freezable ^ sourceFreezable);" />
<MemberSignature Language="F#" Value="override this.GetAsFrozenCore : System.Windows.Freezable -&gt; unit" Usage="mediaPlayer.GetAsFrozenCore sourceFreezable" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="sourceFreezable" Type="System.Windows.Freezable" />
</Parameters>
<Docs>
<param name="sourceFreezable">The <see cref="T:System.Windows.Media.MediaPlayer" /> object to clone and freeze.</param>
<summary>Makes this instance a clone of the specified <see cref="T:System.Windows.Media.MediaPlayer" /> object.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values. Note that if these properties contain resource references or data bindings, <xref:System.Windows.Freezable.GetAsFrozen%2A> will fail when trying to freeze the object and will throw an <xref:System.InvalidOperationException>.
This method is called by the <xref:System.Windows.Freezable.GetAsFrozen%2A> method and should not be called directly from your code, except when calling the base implementation while overriding this method. To create a frozen copy of the current object, call <xref:System.Windows.Freezable.GetAsFrozen%2A> instead of calling this method directly.
For more information, see <xref:System.Windows.Freezable.GetAsFrozenCore%2A?displayProperty=nameWithType>.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="HasAudio">
<MemberSignature Language="C#" Value="public bool HasAudio { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool HasAudio" />
<MemberSignature Language="DocId" Value="P:System.Windows.Media.MediaPlayer.HasAudio" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property HasAudio As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool HasAudio { bool get(); };" />
<MemberSignature Language="F#" Value="member this.HasAudio : bool" Usage="System.Windows.Media.MediaPlayer.HasAudio" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value that indicating whether the media has audio output.</summary>
<value>true if the media has audio output; otherwise, false.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="HasVideo">
<MemberSignature Language="C#" Value="public bool HasVideo { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool HasVideo" />
<MemberSignature Language="DocId" Value="P:System.Windows.Media.MediaPlayer.HasVideo" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property HasVideo As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool HasVideo { bool get(); };" />
<MemberSignature Language="F#" Value="member this.HasVideo : bool" Usage="System.Windows.Media.MediaPlayer.HasVideo" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value that indicates whether the media has video output.</summary>
<value>true if the media has video output; otherwise, false.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="IsBuffering">
<MemberSignature Language="C#" Value="public bool IsBuffering { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsBuffering" />
<MemberSignature Language="DocId" Value="P:System.Windows.Media.MediaPlayer.IsBuffering" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property IsBuffering As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool IsBuffering { bool get(); };" />
<MemberSignature Language="F#" Value="member this.IsBuffering : bool" Usage="System.Windows.Media.MediaPlayer.IsBuffering" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value that indicates whether the media is buffering.</summary>
<value>true if the media is buffering; otherwise, false.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="IsMuted">
<MemberSignature Language="C#" Value="public bool IsMuted { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsMuted" />
<MemberSignature Language="DocId" Value="P:System.Windows.Media.MediaPlayer.IsMuted" />
<MemberSignature Language="VB.NET" Value="Public Property IsMuted As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool IsMuted { bool get(); void set(bool value); };" />
<MemberSignature Language="F#" Value="member this.IsMuted : bool with get, set" Usage="System.Windows.Media.MediaPlayer.IsMuted" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value that indicates whether the media is muted.</summary>
<value>true if the media is muted; otherwise, false.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="MediaEnded">
<MemberSignature Language="C#" Value="public event EventHandler MediaEnded;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler MediaEnded" />
<MemberSignature Language="DocId" Value="E:System.Windows.Media.MediaPlayer.MediaEnded" />
<MemberSignature Language="VB.NET" Value="Public Custom Event MediaEnded As EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event EventHandler ^ MediaEnded;" />
<MemberSignature Language="F#" Value="member this.MediaEnded : EventHandler " Usage="member this.MediaEnded : System.EventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when the media has finished playback.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="MediaFailed">
<MemberSignature Language="C#" Value="public event EventHandler&lt;System.Windows.Media.ExceptionEventArgs&gt; MediaFailed;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler`1&lt;class System.Windows.Media.ExceptionEventArgs&gt; MediaFailed" />
<MemberSignature Language="DocId" Value="E:System.Windows.Media.MediaPlayer.MediaFailed" />
<MemberSignature Language="VB.NET" Value="Public Custom Event MediaFailed As EventHandler(Of ExceptionEventArgs) " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event EventHandler&lt;System::Windows::Media::ExceptionEventArgs ^&gt; ^ MediaFailed;" />
<MemberSignature Language="F#" Value="member this.MediaFailed : EventHandler&lt;System.Windows.Media.ExceptionEventArgs&gt; " Usage="member this.MediaFailed : System.EventHandler&lt;System.Windows.Media.ExceptionEventArgs&gt; " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler&lt;System.Windows.Media.ExceptionEventArgs&gt;</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when an error is encountered</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<a name="xamlAttributeUsage_MediaFailed"></a>
## XAML Attribute Usage
```
<object MediaFailed="EventHandler"/>
```
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="MediaOpened">
<MemberSignature Language="C#" Value="public event EventHandler MediaOpened;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler MediaOpened" />
<MemberSignature Language="DocId" Value="E:System.Windows.Media.MediaPlayer.MediaOpened" />
<MemberSignature Language="VB.NET" Value="Public Custom Event MediaOpened As EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event EventHandler ^ MediaOpened;" />
<MemberSignature Language="F#" Value="member this.MediaOpened : EventHandler " Usage="member this.MediaOpened : System.EventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when the media is opened.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="NaturalDuration">
<MemberSignature Language="C#" Value="public System.Windows.Duration NaturalDuration { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Duration NaturalDuration" />
<MemberSignature Language="DocId" Value="P:System.Windows.Media.MediaPlayer.NaturalDuration" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property NaturalDuration As Duration" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Windows::Duration NaturalDuration { System::Windows::Duration get(); };" />
<MemberSignature Language="F#" Value="member this.NaturalDuration : System.Windows.Duration" Usage="System.Windows.Media.MediaPlayer.NaturalDuration" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Duration</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the natural duration of the media.</summary>
<value>The natural duration of the media. The default is <see cref="P:System.Windows.Duration.Automatic" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<xref:System.Windows.Media.MediaPlayer.NaturalDuration%2A> cannot be determined until after <xref:System.Windows.Media.MediaPlayer.MediaOpened> has occurred.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="NaturalVideoHeight">
<MemberSignature Language="C#" Value="public int NaturalVideoHeight { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 NaturalVideoHeight" />
<MemberSignature Language="DocId" Value="P:System.Windows.Media.MediaPlayer.NaturalVideoHeight" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property NaturalVideoHeight As Integer" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property int NaturalVideoHeight { int get(); };" />
<MemberSignature Language="F#" Value="member this.NaturalVideoHeight : int" Usage="System.Windows.Media.MediaPlayer.NaturalVideoHeight" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the pixel height of the video.</summary>
<value>The pixel height of the video.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Null is returned if the media type is audio.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="NaturalVideoWidth">
<MemberSignature Language="C#" Value="public int NaturalVideoWidth { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 NaturalVideoWidth" />
<MemberSignature Language="DocId" Value="P:System.Windows.Media.MediaPlayer.NaturalVideoWidth" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property NaturalVideoWidth As Integer" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property int NaturalVideoWidth { int get(); };" />
<MemberSignature Language="F#" Value="member this.NaturalVideoWidth : int" Usage="System.Windows.Media.MediaPlayer.NaturalVideoWidth" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the pixel width of the video.</summary>
<value>The pixel width of the video.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Null is returned if the media type is audio.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Open">
<MemberSignature Language="C#" Value="public void Open (Uri source);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Open(class System.Uri source) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.MediaPlayer.Open(System.Uri)" />
<MemberSignature Language="VB.NET" Value="Public Sub Open (source As Uri)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; void Open(Uri ^ source);" />
<MemberSignature Language="F#" Value="member this.Open : Uri -&gt; unit" Usage="mediaPlayer.Open source" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="source" Type="System.Uri" />
</Parameters>
<Docs>
<param name="source">The media source <see cref="T:System.Uri" />.</param>
<summary>Opens the given <see cref="T:System.Uri" /> for media playback.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Pause">
<MemberSignature Language="C#" Value="public void Pause ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Pause() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.MediaPlayer.Pause" />
<MemberSignature Language="VB.NET" Value="Public Sub Pause ()" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; void Pause();" />
<MemberSignature Language="F#" Value="member this.Pause : unit -&gt; unit" Usage="mediaPlayer.Pause " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Pauses media playback.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Calling <xref:System.Windows.Media.MediaPlayer.Pause%2A> when a player has an associated <xref:System.Windows.Media.MediaPlayer.Clock%2A> will throw an <xref:System.InvalidOperationException>. <xref:System.Windows.Media.MediaPlayer.Pause%2A> cannot be called while the timing engine drives media playback.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Play">
<MemberSignature Language="C#" Value="public void Play ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Play() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.MediaPlayer.Play" />
<MemberSignature Language="VB.NET" Value="Public Sub Play ()" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; void Play();" />
<MemberSignature Language="F#" Value="member this.Play : unit -&gt; unit" Usage="mediaPlayer.Play " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Plays media from the current <see cref="P:System.Windows.Media.MediaPlayer.Position" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Calling <xref:System.Windows.Media.MediaPlayer.Play%2A> when a player has an associated <xref:System.Windows.Media.MediaPlayer.Clock%2A> will throw an <xref:System.InvalidOperationException>. <xref:System.Windows.Media.MediaPlayer.Play%2A> cannot be called while the timing engine drives media playback.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Position">
<MemberSignature Language="C#" Value="public TimeSpan Position { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.TimeSpan Position" />
<MemberSignature Language="DocId" Value="P:System.Windows.Media.MediaPlayer.Position" />
<MemberSignature Language="VB.NET" Value="Public Property Position As TimeSpan" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property TimeSpan Position { TimeSpan get(); void set(TimeSpan value); };" />
<MemberSignature Language="F#" Value="member this.Position : TimeSpan with get, set" Usage="System.Windows.Media.MediaPlayer.Position" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.TimeSpan</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the current position of the media.</summary>
<value>The current position of the media.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
If the player has an associated <xref:System.Windows.Media.MediaPlayer.Clock%2A>, setting <xref:System.Windows.Media.MediaPlayer.Position%2A> will throw an <xref:System.InvalidOperationException>. <xref:System.Windows.Media.MediaPlayer.Position%2A> cannot be set while the timing engine drives media playback.
<a name="xamlTextUsage_Position"></a>
## XAML Text Usage
Not typically used in [!INCLUDE[TLA2#tla_xaml](~/includes/tla2sharptla-xaml-md.md)].
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="ReadPreamble">
<MemberSignature Language="C#" Value="protected void ReadPreamble ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance void ReadPreamble() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.MediaPlayer.ReadPreamble" />
<MemberSignature Language="VB.NET" Value="Protected Sub ReadPreamble ()" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; void ReadPreamble();" />
<MemberSignature Language="F#" Value="override this.ReadPreamble : unit -&gt; unit" Usage="mediaPlayer.ReadPreamble " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Ensures that the MediaPlayer is being accessed from a valid thread.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ScriptCommand">
<MemberSignature Language="C#" Value="public event EventHandler&lt;System.Windows.Media.MediaScriptCommandEventArgs&gt; ScriptCommand;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler`1&lt;class System.Windows.Media.MediaScriptCommandEventArgs&gt; ScriptCommand" />
<MemberSignature Language="DocId" Value="E:System.Windows.Media.MediaPlayer.ScriptCommand" />
<MemberSignature Language="VB.NET" Value="Public Custom Event ScriptCommand As EventHandler(Of MediaScriptCommandEventArgs) " />
<MemberSignature Language="C++ CLI" Value="public:&#xA; event EventHandler&lt;System::Windows::Media::MediaScriptCommandEventArgs ^&gt; ^ ScriptCommand;" />
<MemberSignature Language="F#" Value="member this.ScriptCommand : EventHandler&lt;System.Windows.Media.MediaScriptCommandEventArgs&gt; " Usage="member this.ScriptCommand : System.EventHandler&lt;System.Windows.Media.MediaScriptCommandEventArgs&gt; " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler&lt;System.Windows.Media.MediaScriptCommandEventArgs&gt;</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when a script command has been encountered within the media.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<a name="xamlAttributeUsage_ScriptCommand"></a>
## XAML Attribute Usage
```
<object ScriptCommand="EventHandler"/>
```
]]></format>
</remarks>
<related type="ExternalDocumentation" href="https://go.microsoft.com/fwlink/?linkid=57417">IWMPEventsScriptCommand</related>
</Docs>
</Member>
<Member MemberName="ScrubbingEnabled">
<MemberSignature Language="C#" Value="public bool ScrubbingEnabled { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool ScrubbingEnabled" />
<MemberSignature Language="DocId" Value="P:System.Windows.Media.MediaPlayer.ScrubbingEnabled" />
<MemberSignature Language="VB.NET" Value="Public Property ScrubbingEnabled As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool ScrubbingEnabled { bool get(); void set(bool value); };" />
<MemberSignature Language="F#" Value="member this.ScrubbingEnabled : bool with get, set" Usage="System.Windows.Media.MediaPlayer.ScrubbingEnabled" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value that indicates whether scrubbing is enabled.</summary>
<value>
<see langword="true" /> if scrubbing is enabled; otherwise, <see langword="false" />.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Source">
<MemberSignature Language="C#" Value="public Uri Source { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Uri Source" />
<MemberSignature Language="DocId" Value="P:System.Windows.Media.MediaPlayer.Source" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Source As Uri" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property Uri ^ Source { Uri ^ get(); };" />
<MemberSignature Language="F#" Value="member this.Source : Uri" Usage="System.Windows.Media.MediaPlayer.Source" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Uri</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the media <see cref="T:System.Uri" />.</summary>
<value>The current media <see cref="T:System.Uri" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<xref:System.Windows.Media.MediaPlayer.Source%2A> is read-only. This property gets the <xref:System.Uri> that is opened through the <xref:System.Windows.Media.MediaPlayer.Open%2A> method or the <xref:System.Uri> associated with the <xref:System.Windows.Media.MediaPlayer.Clock%2A>.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="SpeedRatio">
<MemberSignature Language="C#" Value="public double SpeedRatio { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance float64 SpeedRatio" />
<MemberSignature Language="DocId" Value="P:System.Windows.Media.MediaPlayer.SpeedRatio" />
<MemberSignature Language="VB.NET" Value="Public Property SpeedRatio As Double" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property double SpeedRatio { double get(); void set(double value); };" />
<MemberSignature Language="F#" Value="member this.SpeedRatio : double with get, set" Usage="System.Windows.Media.MediaPlayer.SpeedRatio" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Double</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the ratio of speed that media is played at.</summary>
<value>The ratio of speed that media is played back represented by a value between 0 and the largest double value. The default is 1.0.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Values less than one yield slower than normal playback while values greater than one yields faster than normal playback.
If the player has an associated <xref:System.Windows.Media.MediaPlayer.Clock%2A>, setting <xref:System.Windows.Media.MediaPlayer.SpeedRatio%2A> is not allowed. <xref:System.Windows.Media.MediaPlayer.SpeedRatio%2A> cannot be set while the timing engine drives media playback.
Audio playback is not guaranteed when <xref:System.Windows.Controls.MediaElement.SpeedRatio%2A> is not `1`.
<a name="xamlTextUsage_SpeedRatio"></a>
## XAML Text Usage
Not typically used in [!INCLUDE[TLA2#tla_xaml](~/includes/tla2sharptla-xaml-md.md)].
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Stop">
<MemberSignature Language="C#" Value="public void Stop ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Stop() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.MediaPlayer.Stop" />
<MemberSignature Language="VB.NET" Value="Public Sub Stop ()" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; void Stop();" />
<MemberSignature Language="F#" Value="member this.Stop : unit -&gt; unit" Usage="mediaPlayer.Stop " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Stops media playback.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Calling <xref:System.Windows.Media.MediaPlayer.Stop%2A> when a player has an associated <xref:System.Windows.Media.MediaPlayer.Clock%2A> will throw an <xref:System.InvalidOperationException>. <xref:System.Windows.Media.MediaPlayer.Stop%2A> cannot be called while the timing engine drives media playback.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Volume">
<MemberSignature Language="C#" Value="public double Volume { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance float64 Volume" />
<MemberSignature Language="DocId" Value="P:System.Windows.Media.MediaPlayer.Volume" />
<MemberSignature Language="VB.NET" Value="Public Property Volume As Double" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property double Volume { double get(); void set(double value); };" />
<MemberSignature Language="F#" Value="member this.Volume : double with get, set" Usage="System.Windows.Media.MediaPlayer.Volume" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Double</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the media's volume.</summary>
<value>The media's volume represented on a linear scale between 0 and 1. The default is 0.5.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<a name="xamlTextUsage_Volume"></a>
## XAML Text Usage
Not typically used in [!INCLUDE[TLA2#tla_xaml](~/includes/tla2sharptla-xaml-md.md)].
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="WritePreamble">
<MemberSignature Language="C#" Value="protected void WritePreamble ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance void WritePreamble() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.MediaPlayer.WritePreamble" />
<MemberSignature Language="VB.NET" Value="Protected Sub WritePreamble ()" />
<MemberSignature Language="C++ CLI" Value="protected:&#xA; void WritePreamble();" />
<MemberSignature Language="F#" Value="override this.WritePreamble : unit -&gt; unit" Usage="mediaPlayer.WritePreamble " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Verifies that the MediaPlayer is not frozen and that it is being accessed from a valid threading context.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.