From 4f1a1196a90b8d617aea10eae265769221ff6de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Tyczy=C5=84ski?= Date: Tue, 15 Aug 2023 17:38:30 +0200 Subject: [PATCH] fix: add MIME type for HTML5 tracks (#5452) --- lib/util/stream_utils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/util/stream_utils.js b/lib/util/stream_utils.js index 019a814f3b..a6d88ad7ed 100644 --- a/lib/util/stream_utils.js +++ b/lib/util/stream_utils.js @@ -1375,6 +1375,9 @@ shaka.util.StreamUtils = class { if (textTrack.kind == 'captions') { track.mimeType = CLOSED_CAPTION_MIMETYPE; } + if (textTrack.kind == 'subtitles') { + track.mimeType = 'text/vtt'; + } if (textTrack.kind) { track.roles = [textTrack.kind]; }