forked from kenzuya/unshackle
refactor(tracks): make complete_track the one finish step for every track kind
This commit is contained in:
@@ -449,9 +449,9 @@ process can use. For these, set no `drm` on the track and override two methods:
|
||||
full-sample cbcs only, not pattern encryption.
|
||||
|
||||
When the download of the track ends, unshackle calls `unshackle.core.drm.cbcs.decrypt_file`, and
|
||||
the progress row shows "Decrypting". Your `on_track_downloaded` runs before this and gets the
|
||||
encrypted file. `decrypt_file` writes the plaintext back in place and removes the
|
||||
protection boxes, so the muxer reads a clear file. In a remote session `get_sample_decrypter`
|
||||
the progress row shows "Decrypting". `decrypt_file` writes the plaintext back in place and removes the
|
||||
protection boxes, so the muxer reads a clear file. Then your `on_track_decrypted` runs with `drm` set
|
||||
to `None`, and after it your `on_track_downloaded` runs and gets the clear file. In a remote session `get_sample_decrypter`
|
||||
runs on the server: the client sends the samples through the `samples` route, so a decrypter
|
||||
that needs a process on the server also works for a remote client.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user