mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Backport pull request #5740 from jellyfin-web/release-10.9.z
Don't change volume if it is physically controlled
Original-merge: e0a0c92b43
Merged-by: thornbill <thornbill@users.noreply.github.com>
Backported-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
parent
c5b338dc64
commit
59db69227b
3 changed files with 19 additions and 6 deletions
|
@ -1584,7 +1584,11 @@ export class HtmlVideoPlayer {
|
|||
playerDlg.innerHTML = html;
|
||||
const videoElement = playerDlg.querySelector('video');
|
||||
|
||||
videoElement.volume = getSavedVolume();
|
||||
// TODO: Move volume control to PlaybackManager. Player should just be a wrapper that translates commands into API calls.
|
||||
if (!appHost.supports('physicalvolumecontrol')) {
|
||||
videoElement.volume = getSavedVolume();
|
||||
}
|
||||
|
||||
videoElement.addEventListener('timeupdate', this.onTimeUpdate);
|
||||
videoElement.addEventListener('ended', this.onEnded);
|
||||
videoElement.addEventListener('volumechange', this.onVolumeChange);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue