Skip to content

Commit

Permalink
fix(Demo): Show correctly external text in the Demo (#5521)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored Aug 23, 2023
1 parent 081cd96 commit e2bf1de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demo/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,11 @@ shakaDemo.Main = class {
this.video_.poster = shakaDemo.Main.audioOnlyPoster_;
}

for (const extraText of asset.extraText) {
this.player_.addTextTrackAsync(extraText.uri, extraText.language,
extraText.kind, extraText.mime, extraText.codecs);
}

for (const extraThumbnail of asset.extraThumbnail) {
this.player_.addThumbnailsTrack(extraThumbnail);
}
Expand Down

0 comments on commit e2bf1de

Please sign in to comment.