RemoteCdm
A CdmApi backed by a pywidevine-compatible CDM server (pywidevine serve).
The device's private key never reaches this process — every operation is an HTTP call, so one server can hold the device while many clients use it.
The caller supplies the HttpClient, which keeps this module free of any engine choice:
val cdm = RemoteCdm(
client = HttpClient(CIO),
baseUrl = "https://cdm.example.com",
deviceName = "generic_android_device",
secret = "your-api-key",
)Parameters
the server root, with or without a trailing slash
the device the server should use, as named in its config
the value sent as the X-Secret-Key header
if given, open rejects a server whose device reports a different Widevine system id
if given, open rejects a server whose device reports a different security level
Constructors
Properties
Security level the server reports for deviceName. Populated by the first open.
System id the server reports for deviceName. Populated by the first open.