From f07caa2b976be61436b9d2a1b21eca4a5a37ccbb Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 1 Oct 2013 17:54:59 -0700 Subject: [PATCH] Close GH-720: unmute if the user drags the volume bar slider. --- src/js/control-bar/volume-control.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/control-bar/volume-control.js b/src/js/control-bar/volume-control.js index db7b9ebd9..d60ecbcd4 100644 --- a/src/js/control-bar/volume-control.js +++ b/src/js/control-bar/volume-control.js @@ -76,6 +76,10 @@ vjs.VolumeBar.prototype.createEl = function(){ }; vjs.VolumeBar.prototype.onMouseMove = function(event) { + if (this.player_.muted()) { + this.player_.muted(false); + } + this.player_.volume(this.calculateDistance(event)); };