Class IllegalSeekPositionException

  • All Implemented Interfaces:
    Serializable

    @Deprecated
    public final class IllegalSeekPositionException
    extends IllegalStateException
    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 Detail

      • timeline

        public final Timeline 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,
                                            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.