- Supported Serve API:
v1.3.0
tov1.3.1
Added
- New Client for using the Serve API;
RemoteCdm
class. It has an identical interface as the originalCdm
class.- However, the constructor is different. Instead of passing a Widevine device object, you need to pass information
about the API like its host (including port if not on a reverse-proxy), and info about the device like its name and
security level. - Other than that, once the RemoteCdm object is created, you use it exactly the same. Magic!
- Any time there's a change or fix to
Cdm
in this update or any in the future, will also be done to RemoteCdm.
- However, the constructor is different. Instead of passing a Widevine device object, you need to pass information
- New Serve endpoint
/set_service_certificate
as an improved way of setting (or unsetting) the service certificate.
Changed
Cdm
s constructor now uses more direct values, so you don't have to use the Device class or.wvd
files.- To continue using
.wvd
files you must now useCdm.from_device()
instead.
- To continue using
- You can now unset the Service certificate by providing
None
to `Cdm.set_service_certificate().
Removed
- Serve's
/challenge
endpoint no longer accepts aservice_certificate
item in the JSON payload.- Instead, use the new
/set_service_certificate
endpoint before calling/challenge
. - You do not need to set it every time. Once per session is enough unless you now want to use a different certificate.
- Instead, use the new