From 7408151f40440d87894453b2e5f745e4888a7495 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) Backported to v4.3.x --- demo/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/demo/main.js b/demo/main.js index a803546557..c000903dd7 100644 --- a/demo/main.js +++ b/demo/main.js @@ -1271,6 +1271,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); + } + // If the asset has an ad tag attached to it, load the ads const adManager = this.player_.getAdManager(); if (adManager && asset.adTagUri) {