Skip to content

Commit

Permalink
Check for "text/vtt" in catch block of SourceBufferSink.js (#4265)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilhavy committed Aug 21, 2023
1 parent da4a7b5 commit 30441c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streaming/SourceBufferSink.js
Expand Up @@ -139,7 +139,7 @@ function SourceBufferSink(config) {

} catch (e) {
// Note that in the following, the quotes are open to allow for extra text after stpp and wvtt
if ((mediaInfo.type == constants.TEXT && !mediaInfo.isFragmented) || (codec.indexOf('codecs="stpp') !== -1) || (codec.indexOf('codecs="vtt') !== -1)) {
if ((mediaInfo.type == constants.TEXT && !mediaInfo.isFragmented) || (codec.indexOf('codecs="stpp') !== -1) || (codec.indexOf('codecs="vtt') !== -1) || (codec.indexOf('text/vtt') !== -1)) {
return _initializeForText(streamInfo);
}
return Promise.reject(e);
Expand Down

0 comments on commit 30441c6

Please sign in to comment.