fix bugs regarding the state of the video player volume and mute buttons

This commit is contained in:
rlx 2011-11-05 14:54:13 +00:00
parent 5a23d8936b
commit 730712e9ba

View file

@ -991,7 +991,7 @@ Ox.VideoPlayer = function(options, self) {
}) })
.bindEvent({ .bindEvent({
click: function() { click: function() {
toggleMuted(); toggleMuted('button');
} }
}) })
.appendTo(self.$volume); .appendTo(self.$volume);
@ -1417,15 +1417,15 @@ Ox.VideoPlayer = function(options, self) {
function getVolumeImageURL() { function getVolumeImageURL() {
var symbol; var symbol;
if (self.options.muted || self.options.volume == 0) { if (self.options.muted || self.options.volume == 0) {
symbol = 'unmute'; symbol = 'Unmute';
} else if (self.options.volume < 1/3) { } else if (self.options.volume < 1/3) {
symbol = 'VolumeUp'; symbol = 'VolumeUp';
} else if (self.options.volume < 2/3) { } else if (self.options.volume < 2/3) {
symbol = 'VolumeDown'; symbol = 'VolumeDown';
} else { } else {
symbol = 'mute'; symbol = 'Mute';
} }
return Ox.UI.getImageURL('symbol' + symbol, 'modern'); return Ox.UI.getImageURL('symbol' + symbol);
} }
function goToNextClip(direction) { function goToNextClip(direction) {