update audio player

This commit is contained in:
rolux 2012-12-11 16:35:45 +01:00
parent c2c6b8a265
commit 6fd7e99c7a

View file

@ -56,6 +56,13 @@ Ox.AudioPlayer = function(options, self) {
.addClass('OxAudioPlayer')
.css({width: self.options.width + 'px'})
.bindEvent({
key_0: toggleMuted,
key_equal: function() {
setVolume(Ox.min(self.options.volume + 0.1, 1));
},
key_minus: function() {
setVolume(Ox.max(self.options.volume - 0.1, 0));
},
key_space: togglePaused
});