Skip to content

Commit

Permalink
fix(HLS): Fix detection of WebVTT subtitles in HLS by extension (#4928)
Browse files Browse the repository at this point in the history
We were seeing uncaught TypeErrors when changing subbtitle
tracks.

Closes #4929
  • Loading branch information
fredrik-telia authored Jan 24, 2023
1 parent 7fa40fd commit 15b0388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hls/hls_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};

Expand Down

0 comments on commit 15b0388

Please sign in to comment.