Package | com.adobe.mediacore.info |
Class | public final class DefaultPlaybackRates |
Inheritance | DefaultPlaybackRates ![]() |
Method | Defined By | ||
---|---|---|---|
adjustRate(rate:Number, playbackRates:Vector.<Number>):Number [static]
Find the nearest playback rate from the available rates to the specified rate. | DefaultPlaybackRates | ||
retrieveGenericRates():Vector.<Number> [static]
Retrieves a vector containing the generic playback rates. | DefaultPlaybackRates | ||
retrieveTrickPlayRates():Vector.<Number> [static]
Retrieves a vector containing the supported trick play rates. | DefaultPlaybackRates |
Constant | Defined By | ||
---|---|---|---|
NORMAL_PLAY_RATE : Number = 1.0 [static]
Rate value used to indicate the normal speed playback. | DefaultPlaybackRates | ||
PAUSED_RATE : Number = 0.0 [static]
Rate value used to indicate that the stream is paused. | DefaultPlaybackRates |
adjustRate | () | method |
public static function adjustRate(rate:Number, playbackRates:Vector.<Number>):Number
Find the nearest playback rate from the available rates to the specified rate.
Parameters
rate:Number — Playback rate.
| |
playbackRates:Vector.<Number> — List of available playback rate.
|
Number — The nearest playback rate.
|
retrieveGenericRates | () | method |
public static function retrieveGenericRates():Vector.<Number>
Retrieves a vector containing the generic playback rates.
ReturnsVector.<Number> — a valid vector of supported playback rates.
|
retrieveTrickPlayRates | () | method |
public static function retrieveTrickPlayRates():Vector.<Number>
Retrieves a vector containing the supported trick play rates.
ReturnsVector.<Number> — a valid vector of supported playback rates.
|
NORMAL_PLAY_RATE | Constant |
public static const NORMAL_PLAY_RATE:Number = 1.0
Rate value used to indicate the normal speed playback.
PAUSED_RATE | Constant |
public static const PAUSED_RATE:Number = 0.0
Rate value used to indicate that the stream is paused.