UnsupportedDrmException
@UnstableApi
public final class UnsupportedDrmException extends Exception
| java.lang.Object | |||
| ↳ | kotlin.Throwable | ||
| ↳ | java.lang.Exception | ||
| ↳ | androidx.media3.exoplayer.drm.UnsupportedDrmException |
Thrown when the requested DRM scheme is not supported.
Summary
Nested types |
|---|
@DocumentedThe reason for the exception. |
Constants |
|
|---|---|
static final int |
There device advertises support for the requested DRM scheme, but there was an error instantiating it. |
static final int |
The requested DRM scheme is unsupported by the device. |
Public fields |
|
|---|---|
final int |
Either |
Public constructors |
|---|
UnsupportedDrmException(@UnsupportedDrmException.Reason int reason) |
UnsupportedDrmException( |
Inherited methods |
|---|
Constants
REASON_INSTANTIATION_ERROR
public static final int REASON_INSTANTIATION_ERROR = 2
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
public static final int REASON_UNSUPPORTED_SCHEME = 1
The requested DRM scheme is unsupported by the device.
Public fields
reason
@UnsupportedDrmException.Reason
public final int reason
Either REASON_UNSUPPORTED_SCHEME or REASON_INSTANTIATION_ERROR.
Public constructors
UnsupportedDrmException
public UnsupportedDrmException(@UnsupportedDrmException.Reason int reason)
| Parameters | |
|---|---|
@UnsupportedDrmException.Reason int reason |
UnsupportedDrmException
public UnsupportedDrmException(
@UnsupportedDrmException.Reason int reason,
Exception cause
)
| Parameters | |
|---|---|
@UnsupportedDrmException.Reason int reason |
|
Exception cause |
The cause of this exception. |