diff --git a/src/components/remotecontrol/remotecontrol.js b/src/components/remotecontrol/remotecontrol.js
index d25f4e59e0..4e33a1196f 100644
--- a/src/components/remotecontrol/remotecontrol.js
+++ b/src/components/remotecontrol/remotecontrol.js
@@ -122,13 +122,13 @@ define(["browser", "datetime", "backdrop", "libraryBrowser", "listView", "imageL
var artistName;
if (item.ArtistItems != null) {
artistName = item.ArtistItems[0].Name;
- // context.querySelector(".nowPlayingAlbum").innerHTML = '' + albumName + '';
+ context.querySelector(".nowPlayingAlbum").innerHTML = '' + albumName + '';
context.querySelector(".nowPlayingArtist").innerHTML = '' + artistName + '';
context.querySelector(".contextMenuAlbum").innerHTML = ' ' + globalize.translate("ViewAlbum") + '';
context.querySelector(".contextMenuArtist").innerHTML = ' ' + globalize.translate("ViewArtist") + '';
} else {
artistName = item.Artists;
- // context.querySelector(".nowPlayingAlbum").innerHTML = albumName;
+ context.querySelector(".nowPlayingAlbum").innerHTML = albumName;
context.querySelector(".nowPlayingArtist").innerHTML = artistName;
}
}
@@ -677,6 +677,17 @@ define(["browser", "datetime", "backdrop", "libraryBrowser", "listView", "imageL
}
}
+ var contextmenuHtml = '';
+ var volumecontrolHtml = '
';
+ volumecontrolHtml += '
';
+ volumecontrolHtml += '
';
+ volumecontrolHtml += '
';
+ if (!layoutManager.mobile) {
+ context.querySelector(".nowPlayingSecondaryButtons").innerHTML += volumecontrolHtml;
+ context.querySelector(".playlistSectionButton").innerHTML += contextmenuHtml;
+ } else {
+ context.querySelector(".playlistSectionButton").innerHTML += volumecontrolHtml + contextmenuHtml;
+ }
context.querySelector(".nowPlayingVolumeSlider").addEventListener("change", setVolume);
context.querySelector(".nowPlayingVolumeSlider").addEventListener("mousemove", setVolumeDelayed);
context.querySelector(".nowPlayingVolumeSlider").addEventListener("touchmove", setVolumeDelayed);
@@ -698,9 +709,11 @@ define(["browser", "datetime", "backdrop", "libraryBrowser", "listView", "imageL
context.querySelector(".playlist").classList.remove("hide");
context.querySelector(".btnSavePlaylist").classList.remove("hide");
context.querySelector(".contextMenu").classList.add("hide");
+ context.querySelector(".volumecontrol").classList.add("hide");
} else {
context.querySelector(".playlist").classList.add("hide");
context.querySelector(".btnSavePlaylist").classList.add("hide");
+ context.querySelector(".volumecontrol").classList.remove("hide");
}
});
context.querySelector(".btnToggleContextMenu").addEventListener("click", function () {
diff --git a/src/nowplaying.html b/src/nowplaying.html
index 74ce0f92ec..c3364f796d 100644
--- a/src/nowplaying.html
+++ b/src/nowplaying.html
@@ -76,12 +76,6 @@