From 15b03884bb61542f451f7854a8562aa3d759ed0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glin?= Date: Tue, 24 Jan 2023 18:27:51 +0100 Subject: [PATCH] fix(HLS): Fix detection of WebVTT subtitles in HLS by extension (#4928) We were seeing uncaught TypeErrors when changing subbtitle tracks. Closes #4929 --- lib/hls/hls_parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hls/hls_parser.js b/lib/hls/hls_parser.js index a27c33580f..089894ec6d 100644 --- a/lib/hls/hls_parser.js +++ b/lib/hls/hls_parser.js @@ -3367,7 +3367,7 @@ shaka.hls.HlsParser.TEXT_EXTENSIONS_TO_MIME_TYPES_ = { 'm4f': 'application/mp4', 'cmft': 'application/mp4', 'vtt': 'text/vtt', - 'webvtt': 'txt/vtt', + 'webvtt': 'text/vtt', 'ttml': 'application/ttml+xml', };