PSSH
Create from a Base64-encoded PSSH box, Widevine CENC header, or PlayReady header.
See also
Create from raw bytes of a PSSH box, Widevine CENC header, or PlayReady header.
The input is interpreted in this order:
an ISOBMFF box sequence containing a
psshbox;a bare
WidevinePsshDataCENC header — accepted only if re-encoding it reproduces the input exactly, since protobuf will happily "parse" many non-protobuf blobs;a bare PlayReady header or PlayReady Object, detected by a UTF-16LE
</WRMHEADER>;anything else, in lenient mode, is wrapped verbatim as the
init_dataof a v0 Widevine box. Some services take custom init data (Netflix MSL, for one).
Parameters
strict
reject step 4 with a DecodeException instead of wrapping.