Skip to content

Commit

Permalink
fix: Fix DRM workaround for Tizen and Xbox with ac-3 boxes (shaka-pro…
Browse files Browse the repository at this point in the history
…ject#3631)

content_workarounds.js was introduced for Tizen and Xbox platforms. We found that that meant a regression where certain streams were unable to be played.

This PR adds ac-3 into the content workarounds in the same was as ec-3 to ensure these streams can be played once more.

Issue shaka-project#3589
  • Loading branch information
Álvaro Velad Galván authored Sep 13, 2021
1 parent fce5935 commit 56a0042
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/media/content_workarounds.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ shaka.media.ContentWorkarounds = class {
newType: ContentWorkarounds.BOX_TYPE_ENCV_,
});
})
.fullBox('ac-3', (box) => {
boxesToModify.push({
box,
newType: ContentWorkarounds.BOX_TYPE_ENCA_,
});
})
.fullBox('ec-3', (box) => {
boxesToModify.push({
box,
Expand Down

0 comments on commit 56a0042

Please sign in to comment.