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 authored and joeyparrish committed Feb 17, 2024
1 parent 725391a commit c068a50
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lib/media/content_workarounds.js
Original file line number Diff line number Diff line change
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 c068a50

Please sign in to comment.