feat(hls): license a FairPlay-only SAMPLE-AES playlist through a PlayReady or Widevine CDM

This commit is contained in:
imSp4rky
2026-11-30 19:36:01 -07:00
parent c41d8ec3cf
commit b826eccb86
9 changed files with 449 additions and 98 deletions
+8
View File
@@ -77,6 +77,12 @@ To download a Widevine-protected title you need a `.wvd` device. For PlayReady y
need a `.prd` device. You can hold both, and unshackle automatically selects the
appropriate one for each track.
!!! note "HLS tracks with only a FairPlay key tag"
unshackle has no FairPlay CDM. When each `EXT-X-KEY` of an fMP4 playlist is sample encryption
for a DRM system that unshackle cannot license, such as FairPlay, unshackle reads the key ID from
the init segment and asks for the licence with your PlayReady or Widevine device. This works
only when the licence server of the platform also issues that content key for that DRM system. MPEG-TS SAMPLE-AES stops with an error.
!!! info "Obtaining device files"
A `.wvd` or `.prd` encodes the private keys of a real client device. unshackle
does **not** ship with one and cannot make the underlying secret material for
@@ -568,6 +574,8 @@ unshackle dl --skip-dl --all-drm --export EXAMPLE 81234567
system does not license, so the title fails unless you use `--best-available`.
- An HLS playlist that changes its `EXT-X-KEY` entries part-way: only the first set
licenses with the second system.
- An HLS playlist with only FairPlay key tags: the DRM system of the configured CDM
licenses it.
- A remote session that the server CDM licenses, and `unshackle import`. unshackle
shows a warning and ignores the flag.
- A remote CDM that stores content keys can answer without a challenge to the service.