From e2bf1de03ec39a751d61b716384697b624bdecbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Velad=20Galv=C3=A1n?= Date: Wed, 23 Aug 2023 07:37:07 +0200 Subject: [PATCH] fix(Demo): Show correctly external text in the Demo (#5521) --- demo/main.js | 5 +++++ 1 file changed, 5 insertions(+) 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); }