1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

improve audio commands

This commit is contained in:
Luke Pulverenti 2013-08-28 01:44:43 -04:00
parent 9d71b16123
commit 7f4327b908
3 changed files with 68 additions and 10 deletions

View file

@ -1199,17 +1199,21 @@
}
};
self.volumeUp = function () {
if (currentMediaElement) {
currentMediaElement.volume = Math.max(currentMediaElement.volume - 5, 0);
}
};
self.volumeDown = function () {
if (currentMediaElement) {
currentMediaElement.volume = Math.min(currentMediaElement.volume + 5, 100);
currentMediaElement.volume = Math.max(currentMediaElement.volume - .025, 0);
volumeSlider.val(currentMediaElement.volume);
}
};
self.volumeUp = function () {
if (currentMediaElement) {
currentMediaElement.volume = Math.min(currentMediaElement.volume + .025, 1);
volumeSlider.val(currentMediaElement.volume);
}
};