diff --git a/lib/media/media_source_engine.js b/lib/media/media_source_engine.js index aa03fc5066..307c83cb1f 100644 --- a/lib/media/media_source_engine.js +++ b/lib/media/media_source_engine.js @@ -739,7 +739,8 @@ shaka.media.MediaSourceEngine = class { } if (hasClosedCaptions && contentType == ContentType.VIDEO) { if (!this.textEngine_) { - this.reinitText('text/vtt', this.sequenceMode_); + this.reinitText(shaka.util.MimeUtils.CEA608_CLOSED_CAPTION_MIMETYPE, + this.sequenceMode_); } if (!this.captionParser_) { this.captionParser_ = this.getCaptionParser(mimeType); diff --git a/lib/text/text_engine.js b/lib/text/text_engine.js index 6d30b0b07f..789d4b1471 100644 --- a/lib/text/text_engine.js +++ b/lib/text/text_engine.js @@ -139,6 +139,7 @@ shaka.text.TextEngine = class { // into TextEngine and TextDisplayer. if (mimeType == shaka.util.MimeUtils.CEA608_CLOSED_CAPTION_MIMETYPE || mimeType == shaka.util.MimeUtils.CEA708_CLOSED_CAPTION_MIMETYPE) { + this.parser_ = null; return; }