Packagecom.adobe.mediacore.info
Classpublic final class DefaultPlaybackRates
InheritanceDefaultPlaybackRates Inheritance Object

Class containing the default playback rates.



Public Methods
 MethodDefined 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
Public Constants
 ConstantDefined 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
Method Detail
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.

Returns
Number — The nearest playback rate.
retrieveGenericRates()method 
public static function retrieveGenericRates():Vector.<Number>

Retrieves a vector containing the generic playback rates.

Returns
Vector.<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.

Returns
Vector.<Number> — a valid vector of supported playback rates.
Constant Detail
NORMAL_PLAY_RATEConstant
public static const NORMAL_PLAY_RATE:Number = 1.0

Rate value used to indicate the normal speed playback.

PAUSED_RATEConstant 
public static const PAUSED_RATE:Number = 0.0

Rate value used to indicate that the stream is paused.