Partial fix for movies and TV shows
Updates volume correctly as you slide back and forth, but does not change icon to mute when at 0 or update bar length. Has no impact on music playback.
This commit is contained in:
@@ -849,6 +849,7 @@ define(["playbackManager", "dom", "inputmanager", "datetime", "itemHelper", "med
|
||||
nowPlayingVolumeSliderContainer.classList.add("hide");
|
||||
}
|
||||
|
||||
// TODO: Find out why this is causing the slider to not update properly
|
||||
if (!nowPlayingVolumeSlider.dragging) {
|
||||
nowPlayingVolumeSlider.value = volumeLevel || 0;
|
||||
}
|
||||
@@ -1247,7 +1248,7 @@ define(["playbackManager", "dom", "inputmanager", "datetime", "itemHelper", "med
|
||||
view.querySelector(".buttonMute").addEventListener("click", function () {
|
||||
playbackManager.toggleMute(currentPlayer);
|
||||
});
|
||||
nowPlayingVolumeSlider.addEventListener("change", function () {
|
||||
nowPlayingVolumeSlider.addEventListener("mousemove", function () {
|
||||
playbackManager.setVolume(this.value, currentPlayer);
|
||||
});
|
||||
nowPlayingPositionSlider.addEventListener("change", function () {
|
||||
|
||||
Reference in New Issue
Block a user