From 6fd7e99c7adb1c5639cca0fe6f126451f85166b6 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 11 Dec 2012 16:35:45 +0100 Subject: [PATCH] update audio player --- source/Ox.UI/js/Audio/AudioPlayer.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/Ox.UI/js/Audio/AudioPlayer.js b/source/Ox.UI/js/Audio/AudioPlayer.js index 9466c299..eccc8d03 100644 --- a/source/Ox.UI/js/Audio/AudioPlayer.js +++ b/source/Ox.UI/js/Audio/AudioPlayer.js @@ -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 });