feat(hls): use the DRM of the track when no key tag can be licensed

This commit is contained in:
imSp4rky
2026-11-29 20:33:19 -07:00
parent 30ed17054d
commit ba2911056d
4 changed files with 174 additions and 2 deletions
+3 -2
View File
@@ -126,9 +126,10 @@ def hls_key_drm(key: Any, kid: UUID | None = None) -> Widevine | PlayReady | Non
def drm_stub(drm_type: str, kid_hexes: list[str]) -> Widevine | PlayReady:
"""A PlayReady (``drm_type`` ``playready``) or else Widevine DRM that names ``kid_hexes``, to hold content keys got without its PSSH.
"""A PlayReady (``drm_type`` ``playready``) or else Widevine DRM that names ``kid_hexes``, for content keys got without a PSSH.
The PSSH is built here, so it is for display only: the caller already has the content keys.
The header is built here and holds the key ids and nothing a packager signed. A licence server that goes by
the key ids answers its challenge, so a service can also license through it; one that checks the header does not.
"""
from unshackle.core.drm.playready import PlayReady
from unshackle.core.drm.widevine import Widevine