docs/doc/reference/com/google/android/exoplayer2/drm/UnsupportedDrmException.html
Package com.google.android.exoplayer2.drm
All Implemented Interfaces:Serializable
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classUnsupportedDrmExceptionextends[Exception](https://developer.android.com/reference/java/lang/Exception.html "class or interface in java.lang")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
Thrown when the requested DRM scheme is not supported. See Also:Serialized Form
Nested Classes | Modifier and Type | Class | Description |
| --- | --- | --- |
| static interface | UnsupportedDrmException.Reason |
Deprecated.
The reason for the exception. |
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| @com.google.android.exoplayer2.drm.UnsupportedDrmException.Reason int | reason |
Deprecated.
Either REASON_UNSUPPORTED_SCHEME or REASON_INSTANTIATION_ERROR.
|
| static int | REASON_INSTANTIATION_ERROR |
Deprecated.
There device advertises support for the requested DRM scheme, but there was an error instantiating it.
|
| static int | REASON_UNSUPPORTED_SCHEME |
Deprecated.
The requested DRM scheme is unsupported by the device. |
Constructors | Constructor | Description |
| --- | --- |
| UnsupportedDrmException(@com.google.android.exoplayer2.drm.UnsupportedDrmException.Reason int reason) |
Deprecated.
|
| UnsupportedDrmException(@com.google.android.exoplayer2.drm.UnsupportedDrmException.Reason int reason, Exception cause) |
Deprecated.
|
-
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
public static final int REASON_UNSUPPORTED_SCHEME
Deprecated.
The requested DRM scheme is unsupported by the device. See Also:Constant Field Values
-
public static final int REASON_INSTANTIATION_ERROR
Deprecated.
There device advertises support for the requested DRM scheme, but there was an error instantiating it. The cause can be retrieved using Throwable.getCause().
See Also:Constant Field Values
-
[@Reason](UnsupportedDrmException.Reason.html "annotation in com.google.android.exoplayer2.drm")public final @com.google.android.exoplayer2.drm.UnsupportedDrmException.Reason int reason
Deprecated.
Either REASON_UNSUPPORTED_SCHEME or REASON_INSTANTIATION_ERROR.
-
public UnsupportedDrmException([@Reason](UnsupportedDrmException.Reason.html "annotation in com.google.android.exoplayer2.drm")@com.google.android.exoplayer2.drm.UnsupportedDrmException.Reason int reason)
Deprecated.
Parameters:reason - REASON_UNSUPPORTED_SCHEME or REASON_INSTANTIATION_ERROR.
-
public UnsupportedDrmException([@Reason](UnsupportedDrmException.Reason.html "annotation in com.google.android.exoplayer2.drm")@com.google.android.exoplayer2.drm.UnsupportedDrmException.Reason int reason,[Exception](https://developer.android.com/reference/java/lang/Exception.html "class or interface in java.lang")cause)
Deprecated.
Parameters:reason - REASON_UNSUPPORTED_SCHEME or REASON_INSTANTIATION_ERROR.cause - The cause of this exception.