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);
|
||||||
|
@ -324,7 +327,7 @@
|
||||||
seriesName = item.SeriesName || item.Album || item.ProductionYear;
|
seriesName = item.SeriesName || item.Album || item.ProductionYear;
|
||||||
}
|
}
|
||||||
|
|
||||||
html += "<div><a href='itemdetails.html?id="+item.Id+"'><img class='nowPlayingBarImage ' alt='' title='' src='" + url + "' style='height:36px;display:inline-block;' /></a></div>";
|
html += "<div><a href='itemdetails.html?id=" + item.Id + "'><img class='nowPlayingBarImage ' alt='' title='' src='" + url + "' style='height:36px;display:inline-block;' /></a></div>";
|
||||||
if (item.Type == "Movie")
|
if (item.Type == "Movie")
|
||||||
html += '<div>' + name + '<br/>' + seriesName + '</div>';
|
html += '<div>' + name + '<br/>' + seriesName + '</div>';
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue