Sets the playback rate of media stream.
Assembly: Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)
For more information and for examples, see Fast Forward and Rewind Modes (IIS Smooth Streaming).
To set the playback rate, use the method using a value from the SupportedPlaybackRates collection.
The following example shows how to get the available playback rates.
// Usable playback rates IList<double> playbackRates = SmoothPlayer.SupportedPlaybackRates;
After the previous line of code runs the list will contain the following values:
-8.0, -4.0, 0.5, 1, 4.0, 8.0.
Positive values set the playback rate to half the normal speed, 4.0 times the normal speed, or 8.0 times the normal speed. Negative values rewind the media stream at rates that are multiples of the normal speed by factors of -4.0 or -8.0.
The following example shows how to call the method using a value from the SupportedPlaybackRates collection.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.