DrmInitData.SchemeData
public final class DrmInitData.SchemeData implements Parcelable
Scheme initialization data.
Summary
Constants |
|
|---|---|
static final Parcelable.Creator<DrmInitData.SchemeData> |
Public fields |
|
|---|---|
final @Nullable byte[] |
The initialization data. |
final @Nullable String |
The URL of the server to which license requests should be made. |
final String |
The mimeType of |
final UUID |
The |
Public constructors |
|---|
SchemeData(UUID uuid, String mimeType, @Nullable byte[] data) |
Public methods |
|
|---|---|
boolean |
canReplace(DrmInitData.SchemeData other)Returns whether this |
DrmInitData.SchemeData |
copyWithData(@Nullable byte[] data)Returns a copy of this instance with the specified data. |
int |
|
boolean |
|
boolean |
hasData()Returns whether |
int |
hashCode() |
boolean |
Returns whether this initialization data applies to the specified scheme. |
void |
writeToParcel(Parcel dest, int flags) |
Inherited Constants |
||||
|---|---|---|---|---|
|
Constants
Public fields
data
public final @Nullable byte[] data
The initialization data. May be null for scheme support checks only.
licenseServerUrl
public final @Nullable String licenseServerUrl
The URL of the server to which license requests should be made. May be null if unknown.
Public constructors
Public methods
canReplace
public boolean canReplace(DrmInitData.SchemeData other)
Returns whether this SchemeData can be used to replace other.
| Parameters | |
|---|---|
DrmInitData.SchemeData other |
A |
| Returns | |
|---|---|
boolean |
Whether this |
copyWithData
public DrmInitData.SchemeData copyWithData(@Nullable byte[] data)
Returns a copy of this instance with the specified data.
| Parameters | |
|---|---|
@Nullable byte[] data |
The data to include in the copy. |
| Returns | |
|---|---|
DrmInitData.SchemeData |
The new instance. |