Class UnsupportedDrmException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.google.android.exoplayer2.drm.UnsupportedDrmException
-
- All Implemented Interfaces:
Serializable
@Deprecated public final class UnsupportedDrmException extends Exception
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 Class Summary
Nested Classes Modifier and Type Class Description static interface
UnsupportedDrmException.Reason
Deprecated.The reason for the exception.
-
Field Summary
Fields Modifier and Type Field Description @com.google.android.exoplayer2.drm.UnsupportedDrmException.Reason int
reason
Deprecated.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.
-
Constructor Summary
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.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
REASON_UNSUPPORTED_SCHEME
public static final int REASON_UNSUPPORTED_SCHEME
Deprecated.The requested DRM scheme is unsupported by the device.- See Also:
- Constant Field Values
-
REASON_INSTANTIATION_ERROR
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 usingThrowable.getCause()
.- See Also:
- Constant Field Values
-
reason
@Reason public final @com.google.android.exoplayer2.drm.UnsupportedDrmException.Reason int reason
Deprecated.
-
-
Constructor Detail
-
UnsupportedDrmException
public UnsupportedDrmException(@Reason @com.google.android.exoplayer2.drm.UnsupportedDrmException.Reason int reason)
Deprecated.- Parameters:
reason
-REASON_UNSUPPORTED_SCHEME
orREASON_INSTANTIATION_ERROR
.
-
UnsupportedDrmException
public UnsupportedDrmException(@Reason @com.google.android.exoplayer2.drm.UnsupportedDrmException.Reason int reason, Exception cause)
Deprecated.- Parameters:
reason
-REASON_UNSUPPORTED_SCHEME
orREASON_INSTANTIATION_ERROR
.cause
- The cause of this exception.
-
-