From 192dfd5bd41a6ea929d9c3019ada9144bc542bab Mon Sep 17 00:00:00 2001 From: Alvaro Velad Galvan Date: Wed, 8 Feb 2023 17:29:17 +0100 Subject: [PATCH] fix: Caption can not turn off at iOS Safari --- lib/player.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/player.js b/lib/player.js index 0d9654eccf..e26d67994d 100644 --- a/lib/player.js +++ b/lib/player.js @@ -2585,6 +2585,8 @@ shaka.Player = class extends shaka.util.FakeEventTarget { // goes wrong. new shaka.util.Timer(resolve).tickAfter(1); }); + } else if (textTracks.length > 0) { + this.isTextVisible_ = true; } // If we have moved on to another piece of content while waiting for