Share via


MediaPlaybackSession.PlaybackRate Property

Definition

Gets or sets a value representing the current playback rate for the MediaPlaybackSession.

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

void PlaybackRate(double value);
public double PlaybackRate { get; set; }
var double = mediaPlaybackSession.playbackRate;
mediaPlaybackSession.playbackRate = double;
Public Property PlaybackRate As Double

Property Value

Double

double

The current playback rate for the MediaPlaybackSession.

Remarks

This value is expressed as a ratio of the desired rate to the normal playback rate. For example, a value of 1.5 sets the playback rate to 150% of the original.

The playback rate can't be set to a value greater than 1.0 while a MediaPlaybackItem with CanSkip set to false is playing. Attempting to do so will cause an exception to be thrown.

Applies to