fix(remote): load the server's first-listed cdm for a server-device option

This commit is contained in:
imSp4rky
2026-11-26 11:20:22 -07:00
parent cca547eba6
commit 251d1e779a
9 changed files with 109 additions and 12 deletions
+3 -1
View File
@@ -282,7 +282,9 @@ There are two ways DRM keys get resolved, chosen by the client's `server_cdm` fl
`server_cdm: false` when it creates the remote session, and the server builds the
service on your device even when the API key has the server CDM.
- A service option that the service lists in `SERVER_DEVICE_OPTIONS` keeps the server
CDM. The server reads the option from `service_params`, or from the top level of
CDM, and the service gets the server's device whatever device you have. From a server
`cdm` entry with a device for both DRM systems, it gets the device that the entry
lists first. The server reads the option from `service_params`, or from the top level of
a request that has no `service_params`. The create response gives the result in
`server_cdm`, and the client shows a warning when the server did not apply its choice.
- The service on the server sees your device, not the server's: its DRM system,
+2 -1
View File
@@ -57,7 +57,8 @@ does not set the order.
On a server, an entry that holds `widevine` and `playready` gives a remote session the server CDM
of the DRM system of the client's local CDM. The service then makes its manifest for that system,
so the client's vault keys and its own device apply to the tracks. A client with no local CDM gets
the device that the entry lists first.
the device that the entry lists first. A service option that runs the remote session on the server's
device, such as a server-identity flag, always gets the device that the entry lists first.
A quality key can also hold a dict of `widevine` / `playready` devices, and so can the
top-level `default` entry: