public static final class DrmInitData.SchemeData
extends java.lang.Object
implements android.os.Parcelable
| 限定符和类型 | 字段和说明 |
|---|---|
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. |
| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic int describeContents()
describeContents 在接口中 android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel 在接口中 android.os.Parcelable