com.ooyala.android.playback.PlaybackRateUtils Class Reference

Helper class for handling the playback speed. More...

Static Public Member Functions

static float round (float value, int decimalPlace)
 Round to certain number of decimals. More...
 
static float clamp (float x, float min, float max)
 

Detailed Description

Helper class for handling the playback speed.

Member Function Documentation

static float com.ooyala.android.playback.PlaybackRateUtils.clamp ( float  x,
float  min,
float  max 
)
static
Parameters
xSpecify the value to constrain.
minSpecify the lower end of the range into which to the constrain x.
maxSpecify the upper end of the range into which to the constrain x.
Returns
the value of x to the range minVal to maxVal. The returned value is computed as
min(max(x, minVal), maxVal)
.
static float com.ooyala.android.playback.PlaybackRateUtils.round ( float  value,
int  decimalPlace 
)
static

Round to certain number of decimals.