ClippingMediaSource.IllegalClippingException


class ClippingMediaSource.IllegalClippingException : IOException


Thrown when a ClippingMediaSource cannot clip its wrapped source.

Summary

Nested types

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

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.

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.

Public properties

reason

@ClippingMediaSource.IllegalClippingException.Reason
val reasonInt

The reason clipping failed.