mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #189 - Dashboard remember volume not working
This commit is contained in:
parent
7e3e103989
commit
f9c330fb36
1 changed files with 34 additions and 31 deletions
|
@ -52,14 +52,17 @@
|
||||||
|
|
||||||
$('#mediaElement', nowPlayingBar).html(html);
|
$('#mediaElement', nowPlayingBar).html(html);
|
||||||
|
|
||||||
$(".itemAudio").volume = volume;
|
$(".itemAudio").each(function () {
|
||||||
|
this.volume = volume;
|
||||||
|
});
|
||||||
|
|
||||||
$(".itemAudio").on("ended", function () {
|
$(".itemAudio").on("ended", function () {
|
||||||
Playlist.playNext();
|
Playlist.playNext();
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".itemAudio").on("volumechange", function () {
|
$(".itemAudio").on("volumechange", function () {
|
||||||
localStorage.setItem("volume", (this).volume);
|
|
||||||
|
localStorage.setItem("volume", this.volume);
|
||||||
});
|
});
|
||||||
|
|
||||||
return $('audio', nowPlayingBar)[0];
|
return $('audio', nowPlayingBar)[0];
|
||||||
|
@ -187,7 +190,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
(this).addEvent("volumechange", function () {
|
(this).addEvent("volumechange", function () {
|
||||||
localStorage.setItem("volume", (this).volume());
|
localStorage.setItem("volume", this.volume());
|
||||||
});
|
});
|
||||||
|
|
||||||
(this).addEvent("play", updateProgress);
|
(this).addEvent("play", updateProgress);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue