Documentation
¶
Overview ¶
Command sweef-cdm is the CDM host helper: a separate process that loads a vendor Content Decryption Module (the Widevine shared library the user already has) and serves the framed CDM host protocol of internal/media/cdm on its standard input and output.
It is a separate binary because loading a shared library needs the dynamic loader, and the Sweef browser binary on Linux is fully static. The helper is the one place in the project that is allowed to be dynamically linked. Sweef starts it on demand (internal/media/cdm.FindHelper); it exits when its standard input closes.
sweef-cdm -cdm /path/to/libwidevinecdm.so serve the protocol (what Sweef runs) sweef-cdm -probe -cdm /path/to/libwidevinecdm.so load the library, print what it reports, exit
For Verified Media Path the signature of this executable is read from <this executable>.sig (the file castLabs EVS writes). See docs/drm.md.