ClippingMediaSource.IllegalClippingException


class ClippingMediaSource.IllegalClippingException : IOException


Thrown when a ClippingMediaSource cannot clip its wrapped source.

Summary

Nested types

The reason clipping failed.

Constants

const Int

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

const Int

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

const Int

The wrapped source ends before the specified clipping start position.

Public properties

Int

The reason clipping failed.

Inherited functions

From java.lang.Throwable

Constants

REASON_INVALID_PERIOD_COUNT

const val REASON_INVALID_PERIOD_COUNT = 0: Int

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

REASON_NOT_SEEKABLE_TO_START

const val REASON_NOT_SEEKABLE_TO_START = 1: Int

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

REASON_START_EXCEEDS_END

const val REASON_START_EXCEEDS_END = 2: Int

The wrapped source ends before the specified clipping start position.

Public constructors

IllegalClippingException

IllegalClippingException(
    @ClippingMediaSource.IllegalClippingException.Reason reason: Int
)
Parameters
@ClippingMediaSource.IllegalClippingException.Reason reason: Int

The reason clipping failed.

IllegalClippingException

IllegalClippingException(
    @ClippingMediaSource.IllegalClippingException.Reason reason: Int,
    startUs: Long,
    endUs: Long
)

Public properties

reason

@ClippingMediaSource.IllegalClippingException.Reason
val reasonInt

The reason clipping failed.