feat(drm)!: load DRM systems beyond the built-ins from plugins in directories.plugins

This commit is contained in:
imSp4rky
2026-12-03 15:51:42 -07:00
parent f8a248a29e
commit e9adc50594
65 changed files with 1651 additions and 2526 deletions
+6 -1
View File
@@ -327,6 +327,11 @@ There are two ways DRM keys get resolved, chosen by the client's `server_cdm` fl
already answered. The client proves it, and a server key waits as the next
candidate.
!!! note "A DRM type that the client does not know"
The client rebuilds the DRM of each track from the track list of the server. When the server
sends a DRM `type` that the client does not know, the client stops the title with one
`DRM_ERROR` line that names the type. Update the client to the version of the server.
!!! note "A height limit on the server CDM"
An API key with `server_cdm_max_height` gets the server CDM only up to that height. The
session create response tells the client who licenses the session in `server_cdm` and gives
@@ -491,7 +496,7 @@ session when the new one is stored, and the server answers the ID of another API
`credentials`, `cookies` (base64 of zlib-compressed Netscape cookie file), `proxy`,
`no_proxy`, `profile`, `cache` (a map of `filename → base64(zlib(bytes))`),
`client_region`, `server_cdm` (`false` when the user picked the local CDM), `cdm_type`, `cdm_security_level`, `cdm_relay` (`true` when the client
answers CDM calls), `cdm_system_id` and `cdm_device_type` (Widevine only), `service_config`
answers CDM calls; a plugin `cdm_type` gets no relay), `cdm_system_id` and `cdm_device_type` (Widevine only), `service_config`
(the identity config keys the service lists in `client_config`), `client` (a freeform identity
object the dashboard shows as sent), and the track-selection hints `range_`, `vcodec`,
`quality`, `best_available`, `generate_dv`, plus arbitrary service CLI options