Skip to content

Commit

Permalink
fix: Fix DRM workaround for Tizen and Xbox with ac-3 boxes (#3631)
Browse files Browse the repository at this point in the history
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 #3589
  • Loading branch information
Álvaro Velad Galván authored and joeyparrish committed Oct 12, 2021
1 parent 2090abd commit 2aab3bf
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 2aab3bf

Please sign in to comment.