diff --git a/demo/main.js b/demo/main.js index 83a3193daa..a47ad41606 100644 --- a/demo/main.js +++ b/demo/main.js @@ -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); }