public static final class DrmInitData.SchemeData extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<DrmInitData.SchemeData> |
CREATOR |
byte[] |
data
The initialization data.
|
String |
mimeType
The mimeType of
data. |
boolean |
requiresSecureDecryption
Whether secure decryption is required.
|
String |
type
The protection scheme type, or null if not applicable or unknown.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description |
|---|
SchemeData(UUID uuid,
String type,
String mimeType,
byte[] data) |
SchemeData(UUID uuid,
String type,
String mimeType,
byte[] data,
boolean requiresSecureDecryption) |
| Modifier and Type | Method and Description |
|---|---|
DrmInitData.SchemeData |
copyWithSchemeType(String type)
Returns a copy of the
DrmInitData.SchemeData instance with the given scheme type. |
int |
describeContents() |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
matches(UUID schemeUuid)
Returns whether this initialization data applies to the specified scheme.
|
void |
writeToParcel(Parcel dest,
int flags) |
@Nullable public final String type
public final byte[] data
public final boolean requiresSecureDecryption
public static final Parcelable.Creator<DrmInitData.SchemeData> CREATOR
public SchemeData(UUID uuid, @Nullable String type, 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).type - The type of the protection scheme, or null if not applicable or unknown.mimeType - The mimeType of the initialization data.data - The initialization data.public SchemeData(UUID uuid, @Nullable String type, 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).type - The type of the protection scheme, or null if not applicable or unknown.mimeType - The mimeType of the initialization data.data - The initialization data.requiresSecureDecryption - Whether secure decryption is required.public boolean matches(UUID schemeUuid)
schemeUuid - The scheme UUID.public DrmInitData.SchemeData copyWithSchemeType(String type)
DrmInitData.SchemeData instance with the given scheme type.type - A protection scheme type.DrmInitData.SchemeData instance with the given scheme type.public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel dest, int flags)
writeToParcel in interface Parcelable