MediaPlaybackSession.IsSupportedPlaybackRateRange(Double, Double) Method

Definition

Gets a value indicating whether the specified range of playback rates is supported.

public:
 virtual bool IsSupportedPlaybackRateRange(double rate1, double rate2) = IsSupportedPlaybackRateRange;
bool IsSupportedPlaybackRateRange(double const& rate1, double const& rate2);
public bool IsSupportedPlaybackRateRange(double rate1, double rate2);
function isSupportedPlaybackRateRange(rate1, rate2)
Public Function IsSupportedPlaybackRateRange (rate1 As Double, rate2 As Double) As Boolean

Parameters

rate1
Double

double

The lower bound of the playback rate range for which support is queried.

rate2
Double

double

The upper bound of the playback rate range for which support is queried.

Returns

Boolean

bool

True if the playback range is supported; otherwise, false.

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

Playback rates are expressed as a ratio of the specified rate to the normal playback rate, so 2.0 is twice as fast as normal and .5 is half as fast as normal. You can use this method to see if slow motion playback is supported by testing the range (0, 1), or you can see if reverse playback is supported by testing the range (-1, 0). You can also test to see if a specific rate is supported by using the same value for both bounds, such as (2, 2) for double-speed playback or (4, 4) for four times the normal playback speed.

Applies to