mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-30 21:15:18 +00:00
Deployed f0163439 with MkDocs version: 1.6.1
This commit is contained in:
@@ -3271,15 +3271,18 @@ PlayReady or Widevine. To license such a track through one of those systems:</p>
|
|||||||
<ol>
|
<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>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>
|
<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>
|
<li>Let your licence callback send the challenge to the server that issues that key.</li>
|
||||||
</ol>
|
</ol>
|
||||||
<p><code>drm_stub</code> builds the header from the key ID alone, so this works with a licence server that goes
|
<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
|
by the key ID, not with one that checks a header a packager signed. A platform can issue the
|
||||||
object and every <code>EXT-X-KEY</code> of its playlist names a key system unshackle cannot license,
|
content key of one package of a title and refuse another. When a track carries a Widevine or PlayReady DRM
|
||||||
<code>HLS.drop_unsupported_keys</code> removes the tags from the parsed playlist. The download then licenses
|
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
|
||||||
and decrypts the track with the DRM object of the track. A track with no DRM object still stops
|
unshackle cannot license, <code>HLS.drop_unsupported_keys</code> removes the tags from the parsed playlist.
|
||||||
with <code>None of the key systems are supported</code>.</p>
|
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">¶</a></h3>
|
<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">¶</a></h3>
|
||||||
<p>CDM selection is config-driven: the <code>cdm</code> map resolves a service tag (and optionally the
|
<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
|
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
Reference in New Issue
Block a user