feat(drm): bridge a FairPlay-only HLS track only for a service with get_fairplay_bridge_license

This commit is contained in:
imSp4rky
2026-12-01 21:07:26 -07:00
parent e36236d5cc
commit 2097d31a0a
38 changed files with 607 additions and 77 deletions
+10 -3
View File
@@ -78,7 +78,14 @@ 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
unshackle has no FairPlay CDM and never sends a FairPlay challenge.
For a FairPlay-only track it can send a PlayReady or Widevine challenge for the KIDs of the init
segments to the licence server of the platform, which works only when that server issues the same
content key to PlayReady or Widevine.
Only a service that defines this route does it. For another service, the download of a FairPlay-only
track stops with `None of the key systems are supported`.
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. unshackle reads one
key ID from each init segment. So it licenses a playlist that changes its content key correctly only
@@ -579,8 +586,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.
- An HLS playlist with only FairPlay key tags, for a service that defines the FairPlay
route: the DRM system of the track's `drm_preference`, else 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.