From b11e95cec7d1b4fb1e03f510a2b15770ff11ebce Mon Sep 17 00:00:00 2001 From: ricardo-a-alves-alb Date: Tue, 22 Nov 2022 15:30:23 +0000 Subject: [PATCH 1/2] add hvc1 fullbox to content workaround for tizen --- lib/media/content_workarounds.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/media/content_workarounds.js b/lib/media/content_workarounds.js index 2452ac3b13..8e5880df26 100644 --- a/lib/media/content_workarounds.js +++ b/lib/media/content_workarounds.js @@ -69,6 +69,12 @@ shaka.media.ContentWorkarounds = class { }) .fullBox('encv', onEncryptionMetadataBox) .fullBox('enca', onEncryptionMetadataBox) + .fullBox('hvc1', (box) => { + boxesToModify.push({ + box, + newType: ContentWorkarounds.BOX_TYPE_ENCV_, + }); + }) .fullBox('avc1', (box) => { boxesToModify.push({ box, From cf8598cc0f52a8a4547621be90c78b7c40a1a5c7 Mon Sep 17 00:00:00 2001 From: ricardo-a-alves-alb Date: Tue, 22 Nov 2022 15:36:33 +0000 Subject: [PATCH 2/2] add support for hev1 fullbox on content workarounds --- lib/media/content_workarounds.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/media/content_workarounds.js b/lib/media/content_workarounds.js index 8e5880df26..a06a998a8c 100644 --- a/lib/media/content_workarounds.js +++ b/lib/media/content_workarounds.js @@ -69,6 +69,12 @@ 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,