Skip to content

Commit

Permalink
fix: Fix DRM workaround for Xbox with Dolby Vision boxes (#6201)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Feb 1, 2024
1 parent f5a9ab1 commit 77f252d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lib/media/content_workarounds.js
Expand Up @@ -69,6 +69,30 @@ shaka.media.ContentWorkarounds = class {
})
.fullBox('encv', onEncryptionMetadataBox)
.fullBox('enca', onEncryptionMetadataBox)
.fullBox('dvav', (box) => {
boxesToModify.push({
box,
newType: ContentWorkarounds.BOX_TYPE_ENCV_,
});
})
.fullBox('dva1', (box) => {
boxesToModify.push({
box,
newType: ContentWorkarounds.BOX_TYPE_ENCV_,
});
})
.fullBox('dvh1', (box) => {
boxesToModify.push({
box,
newType: ContentWorkarounds.BOX_TYPE_ENCV_,
});
})
.fullBox('dvhe', (box) => {
boxesToModify.push({
box,
newType: ContentWorkarounds.BOX_TYPE_ENCV_,
});
})
.fullBox('hev1', (box) => {
boxesToModify.push({
box,
Expand Down

0 comments on commit 77f252d

Please sign in to comment.