docs/doc/reference/com/google/android/exoplayer2/drm/DrmUtil.html
Package com.google.android.exoplayer2.drm
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classDrmUtilextends[Object](https://developer.android.com/reference/java/lang/Object.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.
DRM-related utility methods.
Nested Classes | Modifier and Type | Class | Description |
| --- | --- | --- |
| static interface | DrmUtil.ErrorSource |
Deprecated.
Identifies the operation which caused a DRM-related error. |
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static int | ERROR_SOURCE_EXO_MEDIA_DRM |
Deprecated.
Corresponds to failures caused by an ExoMediaDrm method call.
|
| static int | ERROR_SOURCE_LICENSE_ACQUISITION |
Deprecated.
Corresponds to failures caused by an operation related to obtaining DRM licenses.
|
| static int | ERROR_SOURCE_PROVISIONING |
Deprecated.
Corresponds to failures caused by an operation related to provisioning the device. |
All Methods Static Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| static @com.google.android.exoplayer2.PlaybackException.ErrorCode int | getErrorCodeForMediaDrmException(Exception exception, @com.google.android.exoplayer2.drm.DrmUtil.ErrorSource int errorSource) |
Deprecated.
Returns the PlaybackException.ErrorCode that corresponds to the given DRM-related exception.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static final int ERROR_SOURCE_EXO_MEDIA_DRM
Deprecated.
Corresponds to failures caused by an ExoMediaDrm method call.
See Also:Constant Field Values
-
public static final int ERROR_SOURCE_LICENSE_ACQUISITION
Deprecated.
Corresponds to failures caused by an operation related to obtaining DRM licenses. See Also:Constant Field Values
-
public static final int ERROR_SOURCE_PROVISIONING
Deprecated.
Corresponds to failures caused by an operation related to provisioning the device. See Also:Constant Field Values
-
[@ErrorCode](../PlaybackException.ErrorCode.html "annotation in com.google.android.exoplayer2")public static @com.google.android.exoplayer2.PlaybackException.ErrorCode int getErrorCodeForMediaDrmException([Exception](https://developer.android.com/reference/java/lang/Exception.html "class or interface in java.lang")exception,[@ErrorSource](DrmUtil.ErrorSource.html "annotation in com.google.android.exoplayer2.drm")@com.google.android.exoplayer2.drm.DrmUtil.ErrorSource int errorSource)
Deprecated.
Returns the PlaybackException.ErrorCode that corresponds to the given DRM-related exception.
Parameters:exception - The DRM-related exception for which to obtain a corresponding PlaybackException.ErrorCode.errorSource - The DrmUtil.ErrorSource for the given exception.Returns:The PlaybackException.ErrorCode that corresponds to the given DRM-related exception.