Deployed f0163439 with MkDocs version: 1.6.1

This commit is contained in:
2026-11-30 16:44:56 +00:00
parent 79e7b62941
commit 2f4b8a9e17
2 changed files with 10 additions and 7 deletions
+9 -6
View File
@@ -3271,15 +3271,18 @@ PlayReady or Widevine. To license such a track through one of those systems:</p>
<ol>
<li>Read the key ID from the init segment of the track. <code>HLS.get_track_kid_from_init</code> returns it.</li>
<li>Put a DRM object that names the key ID on the track: <code>drm_stub</code> from <code>unshackle.core.drm.cenc</code>
with <code>"playready"</code> or <code>"widevine"</code> and the key ID.</li>
with <code>"playready"</code> or <code>"widevine"</code> and the key ID. When only one of the two systems issues the
content key, also set <code>track.drm_preference</code> to it.</li>
<li>Let your licence callback send the challenge to the server that issues that key.</li>
</ol>
<p><code>drm_stub</code> builds the header from the key ID alone, so this works with a licence server that goes
by the key ID, not with one that checks a header a packager signed. When a track carries a DRM
object and every <code>EXT-X-KEY</code> of its playlist names a key system unshackle cannot license,
<code>HLS.drop_unsupported_keys</code> removes the tags from the parsed playlist. The download then licenses
and decrypts the track with the DRM object of the track. A track with no DRM object still stops
with <code>None of the key systems are supported</code>.</p>
by the key ID, not with one that checks a header a packager signed. A platform can issue the
content key of one package of a title and refuse another. When a track carries a Widevine or PlayReady DRM
object and every <code>EXT-X-KEY</code> of its playlist is <code>SAMPLE-AES</code> or <code>SAMPLE-AES-CTR</code> for a key system
unshackle cannot license, <code>HLS.drop_unsupported_keys</code> removes the tags from the parsed playlist.
The download then licenses and decrypts the track with the DRM object of the track. This works for
one content key per track: the key changes of the playlist go with the tags. A track with no such
DRM object stops with <code>None of the key systems are supported</code> before it downloads a segment.</p>
<h3 id="how-unshackle-chooses-a-cdm-and-finds-keys">How unshackle chooses a CDM and finds keys<a class="headerlink" href="#how-unshackle-chooses-a-cdm-and-finds-keys" title="Permanent link">&para;</a></h3>
<p>CDM selection is config-driven: the <code>cdm</code> map resolves a service tag (and optionally the
track quality or DRM type) to a device name, which <code>load_cdm</code> instantiates as a local
File diff suppressed because one or more lines are too long