mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-04 06:55:09 +00:00
feat(drm): license a plugin DRM at the licence step and over --remote with the client's plugin device
This commit is contained in:
@@ -612,7 +612,8 @@ stops with `No DRM plugin '<id>' is installed`.
|
||||
|
||||
A plugin sets the facts of its system: its id, its label, how it gets the content key, and how it
|
||||
decrypts. The service gives the content key of a plugin that holds its key. A plugin device licenses
|
||||
a plugin that licenses locally. A plugin decrypts each segment and then the merged file, or the
|
||||
a plugin that licenses locally, at the licence step of a download, after the vault lookup, as for a CDM
|
||||
track: `--list` sends no licence, and `--vaults-only` and `--cdm-only` apply. A plugin decrypts each segment and then the merged file, or the
|
||||
merged file once. The README of each plugin gives its device files, its tools and its limits.
|
||||
|
||||
- **Devices:** a plugin device file is `<name><suffix>`, with the suffix that the plugin sets. A plugin
|
||||
@@ -622,12 +623,21 @@ merged file once. The README of each plugin gives its device files, its tools an
|
||||
its [`cdm`](#selecting-which-device-to-use-the-cdm-config) entry names no device of that system.
|
||||
To use another device, name it under the plugin id in the `cdm` mapping, as you name a device
|
||||
under `widevine`.
|
||||
- **`--remote`:** the server and each client must load the same plugin. The server sends the plugin
|
||||
id, the KIDs, the label and the data that the plugin lets a peer carry; never a content key or a
|
||||
path. A client without the plugin stops the title with `Unknown DRM type '<id>' from the server`.
|
||||
The server sends the content key of a plugin DRM that licenses locally
|
||||
only in a remote session that uses the server CDM. The server loads the plugin device, so a client
|
||||
needs no device.
|
||||
- **`--remote`:** the server and each client must load the same plugin. When a client opens a
|
||||
remote session, it sends the id and the version of each plugin it loads. For a plugin device, it also sends
|
||||
the values of the device attributes that the plugin names (for example the security level), never a
|
||||
path or a device file. The server sends the plugin id, the KIDs, the label and the data that the
|
||||
plugin lets a peer carry; never a content key or a path. The server refuses a title with a track of
|
||||
a plugin that the client did not send with `This title needs the DRM plugin '<id>', which your
|
||||
unshackle does not have`, before it sends the track list. A client that sends no plugin list (an
|
||||
older unshackle) gets `This title needs the DRM plugin '<id>', and your unshackle sends no plugin
|
||||
list`. In a remote session that the client's device licenses, the service on the server reads the
|
||||
values that the client sent, so it picks the data that the client's device can license.
|
||||
In a remote session that uses the server CDM, the server licenses a plugin DRM that licenses locally
|
||||
with its own plugin device, under the licence cap of the API key. With `--cdm-only`, in a session
|
||||
that the client licenses, and for a track above the cap, the client licenses with its own plugin
|
||||
device. The plugin data can be bound to the device that the service on the server read, so a
|
||||
different client device can fail to read it.
|
||||
- **Export:** an export writes a plugin DRM under the plugin id, with the same fields as `--remote`.
|
||||
An import without the plugin stops with `Unknown DRM system '<id>' in the export`.
|
||||
- **Decode check:** FFmpeg checks the content key of a plugin DRM that licenses locally after the
|
||||
|
||||
Reference in New Issue
Block a user