ClippingMediaSource.IllegalClippingException


public final class ClippingMediaSource.IllegalClippingException extends IOException


Thrown when a ClippingMediaSource cannot clip its wrapped source.

Summary

Nested types

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
public annotation ClippingMediaSource.IllegalClippingException.Reason

The reason clipping failed.

Constants

static final int

The wrapped source doesn't consist of a single period.

static final int

The wrapped source is not seekable and a non-zero clipping start position was specified.

static final int

The wrapped source ends before the specified clipping start position.

Public fields

final int

The reason clipping failed.

Public constructors

IllegalClippingException(
    @ClippingMediaSource.IllegalClippingException.Reason int reason,
    long startUs,
    long endUs
)

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

Constants

REASON_INVALID_PERIOD_COUNT

public static final int REASON_INVALID_PERIOD_COUNT = 0

The wrapped source doesn't consist of a single period.

REASON_NOT_SEEKABLE_TO_START

public static final int REASON_NOT_SEEKABLE_TO_START = 1

The wrapped source is not seekable and a non-zero clipping start position was specified.

REASON_START_EXCEEDS_END

public static final int REASON_START_EXCEEDS_END = 2

The wrapped source ends before the specified clipping start position.

Public fields

reason

@ClippingMediaSource.IllegalClippingException.Reason
public final int reason

The reason clipping failed.

Public constructors

IllegalClippingException

public IllegalClippingException(
    @ClippingMediaSource.IllegalClippingException.Reason int reason
)
Parameters
@ClippingMediaSource.IllegalClippingException.Reason int reason

The reason clipping failed.

IllegalClippingException

public IllegalClippingException(
    @ClippingMediaSource.IllegalClippingException.Reason int reason,
    long startUs,
    long endUs
)