fix(drm): send a bridged licence key to the server vault only after its decode check decodes it

This commit is contained in:
imSp4rky
2026-12-01 21:42:36 -07:00
parent cefd5295ac
commit 1288a8e9b7
3 changed files with 42 additions and 18 deletions
+1 -1
View File
@@ -1275,7 +1275,7 @@ A slow answer arrives as a [slow response](#slow-responses).
### `POST /api/session/{session_id}/keys`
Store the content keys that the client proved on a track and that the server did not serve to this remote session. The server stores a content key only for a KID that a track of the remote session names and that no local server vault holds a content key for. It never stores a pair flagged bad, and it never removes a flag. The server answers when its local vaults hold the pairs, and sends them to its other vaults after the answer. The client sends each key of a licence when the licence returns, and each vault key after its decode check passes.
Store the content keys that the client proved on a track and that the server did not serve to this remote session. The server stores a content key only for a KID that a track of the remote session names and that no local server vault holds a content key for. It never stores a pair flagged bad, and it never removes a flag. The server answers when its local vaults hold the pairs, and sends them to its other vaults after the answer. The client sends each key of a licence when the licence returns, and each vault key after its decode check passes. A licence key of a FairPlay-only track that the client licensed through the bridge goes only after its decode check passes, so a client without FFmpeg does not send it.
```json
{ "track_id": "<track_id>", "keys": { "<kid_hex>": "<key_hex>" } }