This documentation is archived and is not being maintained.

MediaPlayer.SpeedRatio Property

Gets or sets the ratio of speed that media is played at.

Namespace: System.Windows.Media
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace:

public double SpeedRatio { get; set; }
/** @property */
public double get_SpeedRatio ()

/** @property */
public void set_SpeedRatio (double value)

public function get SpeedRatio () : double

public function set SpeedRatio (value : double)

<object SpeedRatio="double" .../>

Property 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.

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 Clock, setting SpeedRatio is not allowed. SpeedRatio cannot be set while the timing engine drives media playback.

Audio playback is not guaranteed when SpeedRatio is not 1.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0