ExoMediaDrm.KeyRequest
class ExoMediaDrm.KeyRequest
Contains data used to request keys from a license server.
| See also | |
|---|---|
MediaDrm.KeyRequest |
Summary
Nested types |
|---|
@DocumentedKey request types. |
Constants |
|
|---|---|
const Int |
Key request type for an initial license request. |
const Int |
Key request type if keys are already loaded and available for use. |
const Int |
Key request type for license release. |
const Int |
Key request type for license renewal. |
const Int |
REQUEST_TYPE_UNKNOWN = -2147483648Value returned from |
const Int |
Key request type if keys have been loaded, but an additional license request is needed to update their values. |
Public constructors |
|---|
KeyRequest(data: ByteArray!, licenseServerUrl: String!)Creates an instance with |
KeyRequest(Creates an instance. |
Constants
REQUEST_TYPE_INITIAL
const val REQUEST_TYPE_INITIAL = 0: Int
Key request type for an initial license request.
REQUEST_TYPE_NONE
const val REQUEST_TYPE_NONE = 3: Int
Key request type if keys are already loaded and available for use. No license request is necessary, and no key request data is returned.
REQUEST_TYPE_UNKNOWN
const val REQUEST_TYPE_UNKNOWN = -2147483648: Int
Value returned from getRequestType if the underlying key request does not specify a type.
REQUEST_TYPE_UPDATE
const val REQUEST_TYPE_UPDATE = 4: Int
Key request type if keys have been loaded, but an additional license request is needed to update their values.
Public constructors
KeyRequest
KeyRequest(data: ByteArray!, licenseServerUrl: String!)
Creates an instance with REQUEST_TYPE_UNKNOWN.
KeyRequest
KeyRequest(
data: ByteArray!,
licenseServerUrl: String!,
@ExoMediaDrm.KeyRequest.RequestType requestType: Int
)
Creates an instance.
| Parameters | |
|---|---|
data: ByteArray! |
The opaque key request data. |
licenseServerUrl: String! |
The license server URL to which the request should be made. |
@ExoMediaDrm.KeyRequest.RequestType requestType: Int |
The type of the request, or |