From f681ebb2070eec432cb07bd8631f3b0d21284d86 Mon Sep 17 00:00:00 2001 From: Oliver Tacke Date: Tue, 13 Sep 2022 12:12:46 +0200 Subject: [PATCH] Fix muted videos on mobile --- src/scripts/interactive-video.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/interactive-video.js b/src/scripts/interactive-video.js index c4240949b..a4b08dfbb 100644 --- a/src/scripts/interactive-video.js +++ b/src/scripts/interactive-video.js @@ -2159,7 +2159,7 @@ InteractiveVideo.prototype.attachControls = function ($wrapper) { self.video.mute(); } - if (self.video.isMuted()) { + if (self.video.isMuted() && self.controls.$volume) { // Toggle initial mute button state self.controls.$volume .addClass('h5p-muted')