Backport pull request #5740 from jellyfin-web/release-10.9.z

Don't change volume if it is physically controlled

Original-merge: e0a0c92b43b53a5bba1aaeacf2a9e7e3215d0f16

Merged-by: thornbill <thornbill@users.noreply.github.com>

Backported-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
dmitrylyzo
2024-07-21 01:53:29 -04:00
committed by Bill Thornton
parent c5b338dc64
commit 59db69227b
3 changed files with 19 additions and 6 deletions
+4 -1
View File
@@ -263,7 +263,10 @@ class HtmlAudioPlayer {
document.body.appendChild(elem);
}
elem.volume = htmlMediaHelper.getSavedVolume();
// TODO: Move volume control to PlaybackManager. Player should just be a wrapper that translates commands into API calls.
if (!appHost.supports('physicalvolumecontrol')) {
elem.volume = htmlMediaHelper.getSavedVolume();
}
self._mediaElement = elem;