Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.25 KB

mediaelement_playbackrate.md

File metadata and controls

32 lines (21 loc) · 1.25 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.MediaElement.PlaybackRate
winrt property

Windows.UI.Xaml.Controls.MediaElement.PlaybackRate

-description

Gets or sets the playback rate ratio for the media engine.

-xaml-syntax

<MediaElement PlaybackRate="double"/>

-property-value

The playback rate ratio for the media. A value of 1.0 is the normal playback speed. Value can be negative to play backwards.

-remarks

The current PlaybackRate is set to the value of DefaultPlaybackRate whenever Play is called. So setting DefaultPlaybackRate to a different value has no effect until Play is called.

To set a rate that will persist throughout the lifetime of the MediaElement, use DefaultPlaybackRate. Once playback ends, due to the MediaEnded event being raised or if Pause or Stop are called, the PlaybackRate will be effectively lost.

-examples

-see-also