IllegalSeekPositionException


@UnstableApi
public final class IllegalSeekPositionException extends IllegalStateException


Thrown when an attempt is made to seek to a position that does not exist in the player's .

Summary

Public fields

final long

The seek position in the specified window.

final Timeline

The Timeline in which the seek was attempted.

final int

The index of the window being seeked to.

Public constructors

IllegalSeekPositionException(
    Timeline timeline,
    int windowIndex,
    long positionMs
)

Inherited methods

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Public fields

positionMs

public final long positionMs

The seek position in the specified window.

timeline

public final Timeline timeline

The Timeline in which the seek was attempted.

windowIndex

public final int windowIndex

The index of the window being seeked to.

Public constructors

IllegalSeekPositionException

public IllegalSeekPositionException(
    Timeline timeline,
    int windowIndex,
    long positionMs
)
Parameters
Timeline timeline

The Timeline in which the seek was attempted.

int windowIndex

The index of the window being seeked to.

long positionMs

The seek position in the specified window.