UnsupportedDrmException


@UnstableApi
class UnsupportedDrmException : Exception


Thrown when the requested DRM scheme is not supported.

Summary

Nested types

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(value = )
annotation UnsupportedDrmException.Reason

The reason for the exception.

Constants

const Int

There device advertises support for the requested DRM scheme, but there was an error instantiating it.

const Int

The requested DRM scheme is unsupported by the device.

Constants

REASON_INSTANTIATION_ERROR

const val REASON_INSTANTIATION_ERROR = 2: Int

There device advertises support for the requested DRM scheme, but there was an error instantiating it. The cause can be retrieved using getCause.

REASON_UNSUPPORTED_SCHEME

const val REASON_UNSUPPORTED_SCHEME = 1: Int

The requested DRM scheme is unsupported by the device.

Public constructors

UnsupportedDrmException

UnsupportedDrmException(
    @UnsupportedDrmException.Reason reason: Int,
    cause: Exception!
)
Parameters
@UnsupportedDrmException.Reason reason: Int

REASON_UNSUPPORTED_SCHEME or REASON_INSTANTIATION_ERROR.

cause: Exception!

The cause of this exception.