mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Limit quality settings with maximum resolution
This commit is contained in:
parent
bbfe904a28
commit
0dc920d3fd
1 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
import { appHost } from '../components/apphost';
|
||||
import globalize from '../scripts/globalize';
|
||||
|
||||
export function getVideoQualityOptions(options) {
|
||||
|
@ -11,7 +12,8 @@ export function getVideoQualityOptions(options) {
|
|||
videoWidth = videoHeight * (16 / 9);
|
||||
}
|
||||
|
||||
const maxAllowedWidth = videoWidth || 4096;
|
||||
const hostScreenWidth = appHost.screen()?.maxAllowedWidth || 4096;
|
||||
const maxAllowedWidth = Math.min(videoWidth || hostScreenWidth, hostScreenWidth);
|
||||
|
||||
const qualityOptions = [];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue