public static final class DrmInitData.SchemeData
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<DrmInitData.SchemeData> |
CREATOR |
byte[] |
data
The initialization data.
|
java.lang.String |
licenseServerUrl
The URL of the server to which license requests should be made.
|
java.lang.String |
mimeType
The mimeType of
data. |
boolean |
requiresSecureDecryption
Whether secure decryption is required.
|
| Constructor and Description |
|---|
SchemeData(java.util.UUID uuid,
java.lang.String mimeType,
byte[] data) |
SchemeData(java.util.UUID uuid,
java.lang.String mimeType,
byte[] data,
boolean requiresSecureDecryption) |
SchemeData(java.util.UUID uuid,
java.lang.String licenseServerUrl,
java.lang.String mimeType,
byte[] data,
boolean requiresSecureDecryption) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReplace(DrmInitData.SchemeData other)
Returns whether this
DrmInitData.SchemeData can be used to replace other. |
int |
describeContents() |
boolean |
equals(java.lang.Object obj) |
boolean |
hasData()
Returns whether
data is non-null. |
int |
hashCode() |
boolean |
matches(java.util.UUID schemeUuid)
Returns whether this initialization data applies to the specified scheme.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
@Nullable public final java.lang.String licenseServerUrl
public final java.lang.String mimeType
data.public final byte[] data
public final boolean requiresSecureDecryption
public static final android.os.Parcelable.Creator<DrmInitData.SchemeData> CREATOR
public SchemeData(java.util.UUID uuid,
java.lang.String mimeType,
byte[] data)
uuid - The UUID of the DRM scheme, or C.UUID_NIL if the data is
universal (i.e. applies to all schemes).mimeType - See mimeType.data - See data.public SchemeData(java.util.UUID uuid,
java.lang.String mimeType,
byte[] data,
boolean requiresSecureDecryption)
uuid - The UUID of the DRM scheme, or C.UUID_NIL if the data is
universal (i.e. applies to all schemes).mimeType - See mimeType.data - See data.requiresSecureDecryption - See requiresSecureDecryption.public SchemeData(java.util.UUID uuid,
@Nullable
java.lang.String licenseServerUrl,
java.lang.String mimeType,
byte[] data,
boolean requiresSecureDecryption)
uuid - The UUID of the DRM scheme, or C.UUID_NIL if the data is
universal (i.e. applies to all schemes).licenseServerUrl - See licenseServerUrl.mimeType - See mimeType.data - See data.requiresSecureDecryption - See requiresSecureDecryption.public boolean matches(java.util.UUID schemeUuid)
schemeUuid - The scheme UUID.public boolean canReplace(DrmInitData.SchemeData other)
DrmInitData.SchemeData can be used to replace other.other - A DrmInitData.SchemeData.DrmInitData.SchemeData can be used to replace other.public boolean hasData()
data is non-null.public boolean equals(@Nullable
java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable