Manifests

object Manifests

Pulls PSSH boxes out of DASH and HLS manifests.

This is a convenience layer — nothing here talks to the network, and a manifest is not required to use Cdm. It exists because "find the init data in this manifest" is the step every caller has to write otherwise, and doing it with a regex is where people go wrong.

Functions

Link copied to clipboard

The cenc:default_KID values declared in a DASH MPD, de-duplicated.

Link copied to clipboard
fun psshFromM3u8(playlist: String, systemId: ByteArray? = PSSH.WIDEVINE): List<PSSH>

Every PSSH carried inline by an HLS playlist, in document order and de-duplicated.

Link copied to clipboard
fun psshFromMpd(xml: String, systemId: ByteArray = PSSH.WIDEVINE): List<PSSH>

Every PSSH declared for systemId in a DASH MPD, in document order and de-duplicated.