SpeedProvider
@UnstableApi
interface SpeedProvider
TestSpeedProvider |
|
A custom interface that determines the speed for media at specific timestamps.
Summary
Constants |
|
|---|---|
const SpeedProvider! |
A speed provider with default values. |
Public functions |
|
|---|---|
Long |
getNextSpeedChangeTimeUs(timeUs: Long)Returns the timestamp of the next speed change, if there is any. |
Float |
Returns the media speed from the provided timestamp. |
Constants
Public functions
getNextSpeedChangeTimeUs
fun getNextSpeedChangeTimeUs(timeUs: Long): Long
Returns the timestamp of the next speed change, if there is any.
| Parameters | |
|---|---|
timeUs: Long |
A timestamp, in microseconds. |
| Returns | |
|---|---|
Long |
The timestamp of the next speed change, in microseconds, or |