Helper class for handling the playback speed.
More...
|
static float | round (float value, int decimalPlace) |
| Round to certain number of decimals. More...
|
|
static float | clamp (float x, float min, float max) |
|
Helper class for handling the playback speed.
static float com.ooyala.android.playback.PlaybackRateUtils.clamp |
( |
float |
x, |
|
|
float |
min, |
|
|
float |
max |
|
) |
| |
|
static |
- Parameters
-
x | Specify the value to constrain. |
min | Specify the lower end of the range into which to the constrain x. |
max | Specify 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.