forked from kenzuya/unshackle
Deployed ba291105 with MkDocs version: 1.6.1
This commit is contained in:
@@ -1702,6 +1702,17 @@
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#a-playlist-whose-key-tag-unshackle-cannot-license" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
A playlist whose key tag unshackle cannot license
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -2570,6 +2581,17 @@
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#a-playlist-whose-key-tag-unshackle-cannot-license" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
A playlist whose key tag unshackle cannot license
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -3242,6 +3264,22 @@ protection boxes, so the muxer reads a clear file. Then your <code>on_track_decr
|
||||
to <code>None</code>, and after it your <code>on_track_downloaded</code> runs and gets the clear file. In a remote session <code>get_sample_decrypter</code>
|
||||
runs on the server: the client sends the samples through the <code>samples</code> route, so a decrypter
|
||||
that needs a process on the server also works for a remote client.</p>
|
||||
<h3 id="a-playlist-whose-key-tag-unshackle-cannot-license">A playlist whose key tag unshackle cannot license<a class="headerlink" href="#a-playlist-whose-key-tag-unshackle-cannot-license" title="Permanent link">¶</a></h3>
|
||||
<p>A media playlist can name only a key system that unshackle does not read, such as an <code>skd://</code> key
|
||||
over cbcs media, while the licence server of the platform also issues the same content key over
|
||||
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>
|
||||
<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>
|
||||
<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
|
||||
track quality or DRM type) to a device name, which <code>load_cdm</code> instantiates as a local
|
||||
|
||||
Reference in New Issue
Block a user