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 -1
View File
@@ -1174,7 +1174,7 @@ class Track:
drm_list.append(drm)
elif fmt in {f"urn:uuid:{PR_PSSH.SYSTEM_ID}", "com.microsoft.playready"}:
pssh_b64 = key.uri.split(",")[-1]
drm = PlayReady(pssh=PR_PSSH(pssh_b64), pssh_b64=pssh_b64)
drm = PlayReady.from_pssh_b64(pssh_b64)
drm_list.append(drm)
if drm_list: