MediaDrmCallbackException


@UnstableApi
class MediaDrmCallbackException : IOException


Thrown when an error occurs while executing a DRM key or provisioning request.

Summary

Public constructors

MediaDrmCallbackException(
    dataSpec: DataSpec!,
    uriAfterRedirects: Uri!,
    responseHeaders: (Mutable)Map<String!, (Mutable)List<String!>!>!,
    bytesLoaded: Long,
    cause: Throwable!
)

Creates a new instance with the given values.

Public properties

Long

The number of bytes obtained from the server.

DataSpec!

The DataSpec associated with the request.

(Mutable)Map<String!, (Mutable)List<String!>!>!

The HTTP request headers included in the response.

Uri!

The Uri after redirections, or dataSpec.uri if no redirection occurred.

Public constructors

MediaDrmCallbackException

MediaDrmCallbackException(
    dataSpec: DataSpec!,
    uriAfterRedirects: Uri!,
    responseHeaders: (Mutable)Map<String!, (Mutable)List<String!>!>!,
    bytesLoaded: Long,
    cause: Throwable!
)

Creates a new instance with the given values.

Parameters
dataSpec: DataSpec!

See dataSpec.

uriAfterRedirects: Uri!

See uriAfterRedirects.

responseHeaders: (Mutable)Map<String!, (Mutable)List<String!>!>!

See responseHeaders.

bytesLoaded: Long

See bytesLoaded.

cause: Throwable!

The cause of the exception.

Public properties

bytesLoaded

val bytesLoadedLong

The number of bytes obtained from the server.

dataSpec

val dataSpecDataSpec!

The DataSpec associated with the request.

responseHeaders

val responseHeaders: (Mutable)Map<String!, (Mutable)List<String!>!>!

The HTTP request headers included in the response.

uriAfterRedirects

val uriAfterRedirectsUri!

The Uri after redirections, or dataSpec.uri if no redirection occurred.