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