Package-level declarations

Types

Link copied to clipboard

General decoding/parsing failure.

Link copied to clipboard

A remote CDM's device information does not match the local device.

Link copied to clipboard

MP4 PSSH box parsing error.

Link copied to clipboard

No request context is stored for this session, so a license cannot be parsed.

Link copied to clipboard

Init data or PSSH is missing/invalid for a request.

Link copied to clipboard

The license message is missing, empty, or not a LICENSE.

Link copied to clipboard

Session id is invalid or not found.

Link copied to clipboard
open class KtvineException(message: String) : Exception

Base class for Ktvine library exceptions.

Link copied to clipboard
object KtvineLog

Every log line this library emits goes through here.

Link copied to clipboard

No license has been parsed for this session, so no keys are available.

Link copied to clipboard

Signature or MAC verification failed.

Link copied to clipboard

Too many sessions are open simultaneously.

Link copied to clipboard

Invalid/unsupported value encountered.

Functions

Link copied to clipboard

True when needle occurs anywhere in this array.

Link copied to clipboard

Decode UTF-16LE bytes back to a string. A trailing odd byte is ignored.

Link copied to clipboard

Encode this string as UTF-16LE, two bytes per code unit.

Link copied to clipboard

Convert a Base64-encoded KID String to a Uuid.

fun ByteString?.kidToUuid(): Uuid

Convert a KID from a License KeyContainer.id to a Uuid.

Link copied to clipboard

Interpret 16 bytes as a little-endian (Microsoft) GUID, as PlayReady stores Key IDs.

Link copied to clipboard

Convert a ByteArray to a lowercase hex string.

Link copied to clipboard

Convert this Int to little-endian unsigned 16-bit value ByteArray.

Link copied to clipboard

Convert this Int to little-endian unsigned 32-bit value ByteArray.

Link copied to clipboard

Write this Uuid as 16 little-endian GUID bytes.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ByteString.uuidFromByteArray(): Uuid

Interpret this ByteString as a big-endian unsigned number widened to a Uuid.

Link copied to clipboard
fun ByteString.uuidFromByteString(): Uuid

Interpret this ByteString as a 16-byte Uuid.

Link copied to clipboard
fun ByteString.uuidFromHexByteString(): Uuid

Interpret this ByteString as a hex-encoded Uuid string.

Link copied to clipboard

Read 16 little-endian GUID bytes as a Uuid.