public final class

ClippingMediaSource.IllegalClippingException

extends java.io.IOException

 java.lang.Object

↳java.lang.Throwable

↳java.lang.Exception

↳java.io.IOException

↳androidx.media3.exoplayer.source.ClippingMediaSource.IllegalClippingException

Overview

Thrown when a ClippingMediaSource cannot clip its wrapped source.

Summary

Fields
public final intreason

The reason clipping failed.

public static final intREASON_INVALID_PERIOD_COUNT

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

public static final intREASON_NOT_SEEKABLE_TO_START

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

public static final intREASON_START_EXCEEDS_END

The wrapped source ends before the specified clipping start position.

Constructors
publicIllegalClippingException(int reason)

Methods
from java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Fields

public static final int REASON_INVALID_PERIOD_COUNT

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

public static final int REASON_NOT_SEEKABLE_TO_START

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

public static final int REASON_START_EXCEEDS_END

The wrapped source ends before the specified clipping start position.

public final int reason

The reason clipping failed.

Constructors

public IllegalClippingException(int reason)

Parameters:

reason: The reason clipping failed.