Skip to content

Commit

Permalink
fix: Fix handling of CC when switching between codecs (#5160)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored and joeyparrish committed Apr 26, 2023
1 parent 972fab7 commit 7fcfea1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/media/media_source_engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,8 @@ shaka.media.MediaSourceEngine = class {
// For HLS CEA-608/708 CLOSED-CAPTIONS, text data is embedded in
// the video stream, so textEngine may not have been initialized.
if (!this.textEngine_) {
this.reinitText('text/vtt', this.sequenceMode_);
this.reinitText(shaka.util.MimeUtils.CEA608_CLOSED_CAPTION_MIMETYPE,
this.sequenceMode_);
}

if (transmuxedData.metadata) {
Expand Down

0 comments on commit 7fcfea1

Please sign in to comment.