docs/doc/reference/com/google/android/exoplayer2/IllegalSeekPositionException.html
Package com.google.android.exoplayer2
All Implemented Interfaces:Serializable
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classIllegalSeekPositionExceptionextends[IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException.html "class or interface in java.lang")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
Thrown when an attempt is made to seek to a position that does not exist in the player's Timeline.
See Also:Serialized Form
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| long | positionMs |
Deprecated.
The seek position in the specified window.
|
| Timeline | timeline |
Deprecated.
The Timeline in which the seek was attempted.
|
| int | windowIndex |
Deprecated.
The index of the window being seeked to. |
Constructors | Constructor | Description |
| --- | --- |
| IllegalSeekPositionException(Timeline timeline, int windowIndex, long positionMs) |
Deprecated.
|
-
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
public final[Timeline](Timeline.html "class in com.google.android.exoplayer2")timeline
Deprecated.
The Timeline in which the seek was attempted.
-
public final int windowIndex
Deprecated.
The index of the window being seeked to.
-
public final long positionMs
Deprecated.
The seek position in the specified window.
-
public IllegalSeekPositionException([Timeline](Timeline.html "class in com.google.android.exoplayer2")timeline,
int windowIndex,
long positionMs)
Deprecated.
Parameters:timeline - The Timeline in which the seek was attempted.windowIndex - The index of the window being seeked to.positionMs - The seek position in the specified window.