MediaPlaybackSession.PlaybackRate MediaPlaybackSession.PlaybackRate MediaPlaybackSession.PlaybackRate MediaPlaybackSession.PlaybackRate MediaPlaybackSession.PlaybackRate Property

Definition

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

public : double PlaybackRate { get; set; }
double PlaybackRate();

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

Property Value

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