MediaPlayer::SpeedRatio Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public:
property double SpeedRatio {
	double get();
	void set(double value);
}

Property Value

Type: System::Double

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.

Not typically used in XAML.

.NET Framework
Available since 3.0
Return to top
Show: