diff --git a/lib/util/mime_utils.js b/lib/util/mime_utils.js index a2d1cc4e18..9dcb24adb3 100644 --- a/lib/util/mime_utils.js +++ b/lib/util/mime_utils.js @@ -172,6 +172,9 @@ shaka.util.MimeUtils = class { case base === 'hvc1': case base === 'hev1': return 'hevc'; // H265 + case base === 'vvc1': + case base === 'vvi1': + return 'vvc'; // H266 case base === 'dvh1': case base === 'dvhe': return 'dovi-hevc'; // Dolby Vision based in HEVC diff --git a/test/util/mime_utils_unit.js b/test/util/mime_utils_unit.js index dad79bb8bd..ee95ae0fd4 100644 --- a/test/util/mime_utils_unit.js +++ b/test/util/mime_utils_unit.js @@ -48,6 +48,9 @@ describe('MimeUtils', () => { expect(getNormalizedCodec('hvc1')).toBe('hevc'); expect(getNormalizedCodec('hev1')).toBe('hevc'); + expect(getNormalizedCodec('vvc1')).toBe('vvc'); + expect(getNormalizedCodec('vvi1')).toBe('vvc'); + expect(getNormalizedCodec('dvh1.05')).toBe('dovi-hevc'); expect(getNormalizedCodec('dvhe.05')).toBe('dovi-hevc');