fix bugs regarding the state of the video player volume and mute buttons
This commit is contained in:
parent
5a23d8936b
commit
730712e9ba
1 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue