docs/doc/reference/com/google/android/exoplayer2/SimpleBasePlayer.PositionSupplier.html
Package com.google.android.exoplayer2
protected static interfaceSimpleBasePlayer.PositionSupplier
A supplier for a position.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static SimpleBasePlayer.PositionSupplier | ZERO |
An instance returning a constant position of zero.
|
All Methods Static Methods Instance Methods Abstract Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| long | get() |
Returns the position.
|
| static SimpleBasePlayer.PositionSupplier | getConstant(long positionMs) |
Returns an instance that returns a constant value.
|
| static SimpleBasePlayer.PositionSupplier | getExtrapolating(long currentPositionMs, float playbackSpeed) |
Returns an instance that extrapolates the provided position into the future.
|
-
static final[SimpleBasePlayer.PositionSupplier](SimpleBasePlayer.PositionSupplier.html "interface in com.google.android.exoplayer2")ZERO
An instance returning a constant position of zero.
-
static[SimpleBasePlayer.PositionSupplier](SimpleBasePlayer.PositionSupplier.html "interface in com.google.android.exoplayer2")getConstant(long positionMs)
Returns an instance that returns a constant value.
Parameters:positionMs - The constant position to return, in milliseconds.
-
static[SimpleBasePlayer.PositionSupplier](SimpleBasePlayer.PositionSupplier.html "interface in com.google.android.exoplayer2")getExtrapolating(long currentPositionMs,
float playbackSpeed)
Returns an instance that extrapolates the provided position into the future.
Parameters:currentPositionMs - The current position in milliseconds.playbackSpeed - The playback speed with which the position is assumed to increase.
-
long get()
Returns the position.