docs/doc/reference/com/google/android/exoplayer2/drm/MediaDrmCallbackException.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 classMediaDrmCallbackExceptionextends[IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")
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 an error occurs while executing a DRM key or provisioning request.
See Also:Serialized Form
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| long | bytesLoaded |
Deprecated.
The number of bytes obtained from the server.
|
| DataSpec | dataSpec |
Deprecated.
The DataSpec associated with the request.
|
| Map<String,List<String>> | responseHeaders |
Deprecated.
The HTTP request headers included in the response.
|
| Uri | uriAfterRedirects |
Deprecated.
The Uri after redirections, or dataSpec.uri if no redirection occurred.
|
Constructors | Constructor | Description |
| --- | --- |
| MediaDrmCallbackException(DataSpec dataSpec, Uri uriAfterRedirects, Map<String,List<String>> responseHeaders, long bytesLoaded, Throwable cause) |
Deprecated.
Creates a new instance with the given values. |
-
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
public final[DataSpec](../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec
Deprecated.
The DataSpec associated with the request.
-
public final[Uri](https://developer.android.com/reference/android/net/Uri.html "class or interface in android.net")uriAfterRedirects
Deprecated.
The Uri after redirections, or dataSpec.uri if no redirection occurred.
-
public final[Map](https://developer.android.com/reference/java/util/Map.html "class or interface in java.util")<[String](https://developer.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang"),[List](https://developer.android.com/reference/java/util/List.html?is-external=true "class or interface in java.util")<[String](https://developer.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang")>> responseHeaders
Deprecated.
The HTTP request headers included in the response.
-
public final long bytesLoaded
Deprecated.
The number of bytes obtained from the server.
-
public MediaDrmCallbackException([DataSpec](../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec,[Uri](https://developer.android.com/reference/android/net/Uri.html "class or interface in android.net")uriAfterRedirects,[Map](https://developer.android.com/reference/java/util/Map.html "class or interface in java.util")<[String](https://developer.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang"),[List](https://developer.android.com/reference/java/util/List.html?is-external=true "class or interface in java.util")<[String](https://developer.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang")>> responseHeaders,
long bytesLoaded,[Throwable](https://developer.android.com/reference/java/lang/Throwable.html "class or interface in java.lang")cause)
Deprecated.
Creates a new instance with the given values.
Parameters:dataSpec - See dataSpec.uriAfterRedirects - See uriAfterRedirects.responseHeaders - See responseHeaders.bytesLoaded - See bytesLoaded.cause - The cause of the exception.