Parcelablepublic static final class DrmInitData.SchemeData extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>| Modifier and Type | Field | Description |
|---|---|---|
static Parcelable.Creator<DrmInitData.SchemeData> |
CREATOR |
|
byte[] |
data |
The initialization data.
|
String |
licenseServerUrl |
The URL of the server to which license requests should be made.
|
String |
mimeType |
The mimeType of
data. |
UUID |
uuid |
The
UUID of the DRM scheme, or C.UUID_NIL if the data is universal (i.e. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor | Description |
|---|---|
SchemeData(UUID uuid,
String mimeType,
byte[] data) |
|
SchemeData(UUID uuid,
String licenseServerUrl,
String mimeType,
byte[] data) |
| Modifier and Type | Method | 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(Object obj) |
|
boolean |
hasData() |
Returns whether
data is non-null. |
int |
hashCode() |
|
boolean |
matches(UUID schemeUuid) |
Returns whether this initialization data applies to the specified scheme.
|
void |
writeToParcel(Parcel dest,
int flags) |
public final UUID uuid
UUID of the DRM scheme, or C.UUID_NIL if the data is universal (i.e.
applies to all schemes).@Nullable public final String licenseServerUrl
@Nullable public final byte[] data
public static final Parcelable.Creator<DrmInitData.SchemeData> CREATOR
public SchemeData(UUID uuid, String mimeType, @Nullable 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(UUID uuid, @Nullable String licenseServerUrl, String mimeType, @Nullable 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(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(@Nullable byte[] data)
data - The data to include in the copy.public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel dest, int flags)
writeToParcel in interface Parcelable