Back to Exoplayer

IllegalSeekPositionException (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/IllegalSeekPositionException.html

latest4.1 KB
Original Source

Package com.google.android.exoplayer2

Class IllegalSeekPositionException


[@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

Field Summary

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. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | IllegalSeekPositionException​(Timeline timeline, int windowIndex, long positionMs) | Deprecated. |

Method Summary

- 

Methods inherited from class java.lang.Throwable

addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

- 

timeline

public final[Timeline](Timeline.html "class in com.google.android.exoplayer2")timeline

Deprecated.

The Timeline in which the seek was attempted.

- 

windowIndex

public final int windowIndex

Deprecated.

The index of the window being seeked to.

- 

positionMs

public final long positionMs

Deprecated.

The seek position in the specified window.

Constructor Detail

- 

IllegalSeekPositionException

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.