Companion

object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun fromInitSegment(data: ByteArray, systemId: ByteArray = WIDEVINE): PSSH?

Pick the pssh box for one DRM system out of an init segment.

Link copied to clipboard
fun new(systemId: Uuid, keyIds: List<Uuid>? = null, initData: Any? = null, version: Int = 0, flags: Int = 0): PSSH

Create a new PSSH object.

Link copied to clipboard

Parse every pssh box in an ISOBMFF byte sequence.

fun parseAll(data: String): List<PSSH>

Parse data as Base64 and return every pssh box in it.

Link copied to clipboard
fun parseKeyIds(keyIds: List<Any>): List<Uuid>

Convert a list of UUID | String(hex/base64) | ByteArray to UUIDs.