From d51fe23b7fab99501818c18cc76586e1ec4abcdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Velad=20Galv=C3=A1n?= Date: Fri, 29 Apr 2022 23:46:36 +0200 Subject: [PATCH] fix(dash): Fix playback of Dolby Atmos (#4173) According to https://developerkb.dolby.com/support/solutions/articles/16000067758-what-is-dolby-digital-plus-joc-joint-object-coding- Dolby Atmos (JOC): > Joint Object Coding describes the process by which Dolby Digital Plus with Atmos decoders, receiving a legacy 5.1 mix and sideband metadata, are able to reconstruct the original Atmos mix. So there is no need to deal with a separate mimetype, it can be decoded with Dolby Digital+ (better for retrocompatibility). Closes #4171 --- lib/dash/dash_parser.js | 1 - test/dash/dash_parser_manifest_unit.js | 24 ------------------------ 2 files changed, 25 deletions(-) diff --git a/lib/dash/dash_parser.js b/lib/dash/dash_parser.js index 1887c34d01..5ea78abd57 100644 --- a/lib/dash/dash_parser.js +++ b/lib/dash/dash_parser.js @@ -1229,7 +1229,6 @@ shaka.dash.DashParser = class { }); let spatialAudio = false; if (hasJoc) { - context.representation.mimeType = 'audio/eac3-joc'; spatialAudio = true; } diff --git a/test/dash/dash_parser_manifest_unit.js b/test/dash/dash_parser_manifest_unit.js index 0f20add3fe..1232d992e3 100644 --- a/test/dash/dash_parser_manifest_unit.js +++ b/test/dash/dash_parser_manifest_unit.js @@ -447,30 +447,6 @@ describe('DashParser Manifest', () => { expect(stream.closedCaptions).toEqual(expectedClosedCaptions); }); - it('Detects E-AC3 JOC content by SupplementalProperty', async () => { - const idUri = 'tag:dolby.com,2018:dash:EC3_ExtensionType:2018'; - const source = [ - '', - ' ', - ' ', - ' ', - ' ', - ' http://example.com', - ' ', - ' ', - ' ', - ' ', - '', - ].join('\n'); - - fakeNetEngine.setResponseText('dummy://foo', source); - - /** @type {shaka.extern.Manifest} */ - const manifest = await parser.start('dummy://foo', playerInterface); - const stream = manifest.variants[0].audio; - expect(stream.mimeType).toBe('audio/eac3-joc'); - }); - it('Detects spatial audio', async () => { const idUri = 'tag:dolby.com,2018:dash:EC3_ExtensionType:2018'; const source = [