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.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
SchemeData(UUID uuid,
String mimeType,
byte[] data) |
SchemeData(UUID uuid,
String mimeType,
byte[] data,
boolean requiresSecureDecryption) |
Modifier and Type | Method and Description |
---|---|
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) |
public final byte[] data
public final boolean requiresSecureDecryption
public static final Parcelable.Creator<DrmInitData.SchemeData> CREATOR
public SchemeData(UUID uuid, 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
- The mimeType of the initialization data.data
- The initialization data.public SchemeData(UUID uuid, 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
- 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 int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable