mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-01 12:53:49 +02:00
Add pssh box parsing and expose them in resolveKey
This commit is contained in:
@@ -352,7 +352,10 @@ using input = new Input({
|
||||
formats: ALL_FORMATS,
|
||||
formatOptions: {
|
||||
isobmff: {
|
||||
resolveKeyId: ({ keyId }) => {
|
||||
resolveKeyId: ({ keyId, psshBoxes }) => {
|
||||
// psshBoxes contains Protection System Specific Header boxes
|
||||
// relevant to this key ID. They can be used to obtain a
|
||||
// decryption key from a DRM license server.
|
||||
const key = keyMap.get(keyId);
|
||||
if (!key) {
|
||||
throw new Error('Unknown key ID.');
|
||||
@@ -367,4 +370,4 @@ using input = new Input({
|
||||
|
||||
## Subtitles
|
||||
|
||||
Reading subtitles from HLS playlists is not currently supported. Sorry!
|
||||
Reading subtitles from HLS playlists is not currently supported. Sorry!
|
||||
|
||||
Reference in New Issue
Block a user