From b56bd2871f31bf438186c93d0e5c423f7597bf83 Mon Sep 17 00:00:00 2001 From: Ricardo Alves <96475496+ricardo-a-alves-alb@users.noreply.github.com> Date: Tue, 22 Nov 2022 18:18:16 +0000 Subject: [PATCH] fix: Fix DRM workaround for Tizen and Xbox with hvc1/hev1 boxes (#4743) fixes #4742 --- lib/media/content_workarounds.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/media/content_workarounds.js b/lib/media/content_workarounds.js index 2452ac3b13..a06a998a8c 100644 --- a/lib/media/content_workarounds.js +++ b/lib/media/content_workarounds.js @@ -69,6 +69,18 @@ shaka.media.ContentWorkarounds = class { }) .fullBox('encv', onEncryptionMetadataBox) .fullBox('enca', onEncryptionMetadataBox) + .fullBox('hev1', (box) => { + boxesToModify.push({ + box, + newType: ContentWorkarounds.BOX_TYPE_ENCV_, + }); + }) + .fullBox('hvc1', (box) => { + boxesToModify.push({ + box, + newType: ContentWorkarounds.BOX_TYPE_ENCV_, + }); + }) .fullBox('avc1', (box) => { boxesToModify.push({ box,