DrmInitData.SchemeData


class DrmInitData.SchemeData : Parcelable


Scheme initialization data.

Summary

Public constructors

SchemeData(uuid: UUID!, mimeType: String!, data: ByteArray<Byte>?)
SchemeData(
    uuid: UUID!,
    licenseServerUrl: String?,
    mimeType: String!,
    data: ByteArray<Byte>?
)

Public functions

Boolean

Returns whether this SchemeData can be used to replace other.

DrmInitData.SchemeData!

Returns a copy of this instance with the specified data.

Int
Boolean
equals(obj: Any?)
Boolean

Returns whether data is non-null.

Int
Boolean
matches(schemeUuid: UUID!)

Returns whether this initialization data applies to the specified scheme.

Unit
writeToParcel(dest: Parcel!, flags: Int)

Public properties

Array<Byte>?

The initialization data.

String?

The URL of the server to which license requests should be made.

String!

The mimeType of data.

UUID!

The UUID of the DRM scheme, or UUID_NIL if the data is universal (i.e. applies to all schemes).

Constants

Public constructors

SchemeData

SchemeData(uuid: UUID!, mimeType: String!, data: ByteArray<Byte>?)
Parameters
uuid: UUID!

The UUID of the DRM scheme, or UUID_NIL if the data is universal (i.e. applies to all schemes).

mimeType: String!

See mimeType.

data: ByteArray<Byte>?

See data.

SchemeData

SchemeData(
    uuid: UUID!,
    licenseServerUrl: String?,
    mimeType: String!,
    data: ByteArray<Byte>?
)
Parameters
uuid: UUID!

The UUID of the DRM scheme, or UUID_NIL if the data is universal (i.e. applies to all schemes).

licenseServerUrl: String?

See licenseServerUrl.

mimeType: String!

See mimeType.

data: ByteArray<Byte>?

See data.

Public functions

canReplace

fun canReplace(other: DrmInitData.SchemeData!): Boolean

Returns whether this SchemeData can be used to replace other.

Parameters
other: DrmInitData.SchemeData!

A SchemeData.

Returns
Boolean

Whether this SchemeData can be used to replace other.

copyWithData

fun copyWithData(data: ByteArray<Byte>?): DrmInitData.SchemeData!

Returns a copy of this instance with the specified data.

Parameters
data: ByteArray<Byte>?

The data to include in the copy.

Returns
DrmInitData.SchemeData!

The new instance.

describeContents

fun describeContents(): Int

equals

fun equals(obj: Any?): Boolean

hasData

fun hasData(): Boolean

Returns whether data is non-null.

hashCode

fun hashCode(): Int

matches

fun matches(schemeUuid: UUID!): Boolean

Returns whether this initialization data applies to the specified scheme.

Parameters
schemeUuid: UUID!

The scheme UUID.

Returns
Boolean

Whether this initialization data applies to the specified scheme.

writeToParcel

fun writeToParcel(dest: Parcel!, flags: Int): Unit

Public properties

data

val data: Array<Byte>?

The initialization data. May be null for scheme support checks only.

licenseServerUrl

val licenseServerUrl: String?

The URL of the server to which license requests should be made. May be null if unknown.

mimeType

val mimeType: String!

The mimeType of data.

uuid

val uuid: UUID!

The UUID of the DRM scheme, or UUID_NIL if the data is universal (i.e. applies to all schemes).