feat(drm): license a plugin DRM at the licence step and over --remote with the client's plugin device

This commit is contained in:
imSp4rky
2026-12-03 15:51:42 -07:00
parent f1f91a7d5c
commit 0536056ed6
24 changed files with 803 additions and 136 deletions
+3 -1
View File
@@ -232,7 +232,9 @@ accepted URL/ID formats and options there.
to classify it. These work correctly for local *and* remote CDMs, so never
hand-roll an `isinstance` check. Services often pick a device profile or
manifest endpoint based on which DRM the CDM speaks. A service whose DRM
plugin licenses locally gets its device from `ctx.obj.cdm_for("<plugin id>")`.
plugin licenses locally puts only the plugin data on the track: unshackle
licenses it at the licence step. To pick streams by the device, read the
device with `ctx.obj.cdm_for("<plugin id>")`.
`ctx.obj.cdm_for` is `None` where nothing licenses, for example in a search.
### `authenticate`: optional login