fix(drm): load a bare PlayReady WRMHEADER from DASH, HLS and ISM manifests

PlayReady.from_pssh_b64 wraps a bare UTF-16LE WRMHEADER in a PlayReady Object and keeps that as pssh_b64. DASH and ISM log and skip a PlayReady entry they cannot parse.
This commit is contained in:
imSp4rky
2026-10-23 15:55:01 -06:00
parent cc4bf19706
commit 3345422790
6 changed files with 140 additions and 12 deletions
+1 -4
View File
@@ -1578,10 +1578,7 @@ class HLS:
**extra_params,
)
elif key.keyformat and key.keyformat.lower() in {f"urn:uuid:{PR_PSSH.SYSTEM_ID}", "com.microsoft.playready"}:
drm = PlayReady(
pssh=PR_PSSH(key.uri.split(",")[-1]),
pssh_b64=key.uri.split(",")[-1],
)
drm = PlayReady.from_pssh_b64(key.uri.split(",")[-1])
else:
raise NotImplementedError(f"The key system is not supported: {key}")