Skip to content

Commit

Permalink
fix(HLS): Fix detection of WebVTT subtitles in HLS by extension (shak…
Browse files Browse the repository at this point in the history
…a-project#4928)

We were seeing uncaught TypeErrors when changing subbtitle
tracks.

Closes shaka-project#4929
  • Loading branch information
fredrik-telia committed 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
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.