Provides media playback for drawings.
Assembly: PresentationCore (in PresentationCore.dll)
Gets or sets the balance between the left and right speaker volumes.
Gets the percentage of buffering completed for streaming content.
Gets a value that indicates whether the object can be made unmodifiable. (Inherited from Freezable.)
Gets a value indicating whether the media can be paused.
Gets the percentage of download progress for content located at a remote server.
Gets a value that indicating whether the media has audio output.
Gets a value that indicates whether the media has video output.
Gets a value that indicates whether the media is buffering.
Gets a value that indicates whether the object is currently modifiable. (Inherited from Freezable.)
Gets a value that indicates whether the media is muted.
Gets a value that indicates whether this instance is currently sealed (read-only).(Inherited from DependencyObject.)
Gets the natural duration of the media.
Gets the pixel height of the video.
Gets the pixel width of the video.
Gets or sets the current position of the media.
Gets or sets a value that indicates whether scrubbing is enabled.
Gets the media Uri.
Gets or sets the ratio of speed that media is played at.
Gets or sets the media's volume.
|ApplyAnimationClock(DependencyProperty^, AnimationClock^, HandoffBehavior)|
|BeginAnimation(DependencyProperty^, AnimationTimeline^, HandoffBehavior)|
Creates a modifiable clone of this Animatable, making deep copies of this object's values. When copying this object's dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values. (Inherited from Animatable.)
Makes this instance a deep copy of the specified Freezable::CloneCore(Freezable^).). 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.(Overrides
Makes this instance a modifiable deep copy of the specified Freezable::CloneCurrentValueCore(Freezable^).)using current property values. Resource references, data bindings, and animations are not copied, but their current values are.(Overrides
Closes the underlying media.
Creates a new Freezable::CreateInstanceCore().)instance.(Overrides
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Makes this instance a clone of the specified Freezable::GetAsFrozenCore(Freezable^).)object. (Overrides
Re-evaluates the effective value for the specified dependency property(Inherited from DependencyObject.)
|OnFreezablePropertyChanged(DependencyObject^, DependencyObject^, DependencyProperty^)|
This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.(Inherited from Freezable.)
Opens the given Uri for media playback.
Pauses media playback.
Plays media from the current Position.
Returns the local value of a dependency property, if it exists. (Inherited from DependencyObject.)
Ensures that the MediaPlayer is being accessed from a valid thread.
Sets the value of a dependency property without changing its value source. (Inherited from DependencyObject.)
Sets the local value of a dependency property, specified by its dependency property identifier. (Inherited from DependencyObject.)
Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.(Inherited from DependencyObject.)
Stops media playback.
Returns a string that represents the current object.(Inherited from Object.)
Verifies that the MediaPlayer is not frozen and that it is being accessed from a valid threading context.
Occurs when buffering has finished.
Occurs when buffering has started.
Occurs when the media has finished playback.
Occurs when an error is encountered
Occurs when the media is opened.
Occurs when a script command has been encountered within the media.
Although you can declare an instance of this class in Extensible Application Markup Language (XAML), you cannot load and play its media without using code. To play media in XAML only, use a MediaElement. Also, if you declare an instance in XAML, the only practical use is to fill property element syntax for the Player 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.
Open method drives playback. In Clock mode, the can be thought of as a target for an animation, and thus it will have corresponding Timeline and Clock entries in the Timing tree which controls playback. For more information on media modes, see the Multimedia Overview.can be used in two different modes, depending on what is driving the player: independent mode or clock mode. In independent mode, the is analogous to an image and the media opened through the
Available since 3.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.