Back to Exoplayer

MediaDrmCallbackException (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/drm/MediaDrmCallbackException.html

latest6.1 KB
Original Source

Package com.google.android.exoplayer2.drm

Class MediaDrmCallbackException


[@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

Field Summary

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. |

Constructor Summary

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. |

Method Summary

- 

Methods inherited from class java.lang.Throwable

addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

- 

dataSpec

public final[DataSpec](../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec

Deprecated.

The DataSpec associated with the request.

- 

uriAfterRedirects

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.

- 

responseHeaders

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.

- 

bytesLoaded

public final long bytesLoaded

Deprecated.

The number of bytes obtained from the server.

Constructor Detail

- 

MediaDrmCallbackException

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.