feat(drm): decrypt plugin segments as they land on the fetch_segments decrypter seam

This commit is contained in:
imSp4rky
2026-12-03 15:51:42 -07:00
parent e9adc50594
commit f1f91a7d5c
14 changed files with 309 additions and 84 deletions
+2
View File
@@ -138,6 +138,7 @@ def test_a_mode_that_cannot_resume_withdraws_the_sidecar(tmp_path, keep):
(Video.Descriptor.HLS, DownloadMode(aes128=True), False),
(Video.Descriptor.HLS, DownloadMode(drm=ClearKeyCENC(kids=[KID])), False),
(Video.Descriptor.HLS, DownloadMode(drm=ClearKey(key=bytes(16))), False),
(Video.Descriptor.HLS, DownloadMode(segment_keys=KEY_ARGS, drm=ClearKey(key=bytes(16))), True),
],
ids=[
"dash",
@@ -154,6 +155,7 @@ def test_a_mode_that_cannot_resume_withdraws_the_sidecar(tmp_path, keep):
"hls-aes128",
"hls-clearkey-cenc",
"hls-clearkey",
"hls-segment-decrypt-other-drm",
],
)
def test_resume_verdict(tmp_path, keep, descriptor, mode, resumable):