Share via


4.524 MediaElement

x:Object > DependencyObject > Visual > UIElement > FrameworkElement > MediaElement, IInputElement

(usage)

<MediaElement />

(description)

Represents a control that contains audio and/or video.

[name property]

Name

[xml lang property]

Language

(properties)

Balance

x:Double

(description)

A ratio of volume across speakers.

IsMuted

x:Boolean

(description)

A value indicating whether the audio is muted.

LoadedBehavior

MediaState

(description)

The load behavior MediaState for the media.

Position

x:TimeSpan

(description)

The current position of progress through the media's playback time.

ScrubbingEnabled

x:Boolean

(description)

A value that indicates whether the MediaElement will update frames for seek operations while paused.

Source

x:Uri

(description)

A media source on the MediaElement.

SpeedRatio

x:Double

(description)

The speed ratio of the media.

Stretch

Stretch

(description)

A Stretch value that describes how a MediaElement fills the destination rectangle.

StretchDirection

StretchDirection

(description)

A value that determines the restrictions on scaling that are applied to the image.

UnloadedBehavior

MediaState

(description)

The unload behavior MediaState for the media.

Volume

x:Double

(description)

The media's volume.

(events)

BufferingEnded

Occurs when media buffering has ended.

BufferingStarted

Occurs when media buffering has begun.

MediaEnded

Occurs when the media has ended.

MediaFailed

Occurs when an error is encountered.

MediaOpened

Occurs when media loading has finished.

ScriptCommand

Occurs when a script command is encountered in the media.