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. |
java.util.UUID |
uuid
The
UUID of the DRM scheme, or C.UUID_NIL if the data is universal (i.e. |
| Constructor and Description |
|---|
SchemeData(java.util.UUID uuid,
java.lang.String mimeType,
byte[] data) |
SchemeData(java.util.UUID uuid,
java.lang.String licenseServerUrl,
java.lang.String mimeType,
byte[] data) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReplace(DrmInitData.SchemeData other)
Returns whether this
DrmInitData.SchemeData can be used to replace other. |
DrmInitData.SchemeData |
copyWithData(byte[] data)
Returns a copy of this instance with the specified data.
|
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) |
public final java.util.UUID uuid
UUID of the DRM scheme, or C.UUID_NIL if the data is universal (i.e.
applies to all schemes).public final java.lang.String licenseServerUrl
public final java.lang.String mimeType
data.public final byte[] data
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 licenseServerUrl,
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).licenseServerUrl - See licenseServerUrl.mimeType - See mimeType.data - See data.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 DrmInitData.SchemeData copyWithData(byte[] data)
data - The data to include in the copy.public boolean equals(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