Skip to content

Commit 7f7f793

Browse files
committed
Fix initial mute button state
1 parent 9bd6b90 commit 7f7f793

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/scripts/interactive-video.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2070,6 +2070,13 @@ InteractiveVideo.prototype.attachControls = function ($wrapper) {
20702070
self.video.mute();
20712071
}
20722072

2073+
if (self.video.isMuted()) {
2074+
// Toggle initial mute button state
2075+
self.controls.$volume
2076+
.addClass('h5p-muted')
2077+
.attr('aria-label', self.l10n.sndDisabled);
2078+
}
2079+
20732080
// TODO: Do not add until qualities are present?
20742081
// Add popup for selecting video quality
20752082
self.controls.$qualityChooser = H5P.jQuery('<div/>', {

0 commit comments

Comments
 (0)