mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-02 05:55:08 +00:00
feat(hls): use the DRM of the track when no key tag can be licensed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user