mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Increase reference bitrate for high efficiency codecs
This commit is contained in:
parent
33a5533b11
commit
020dad8867
2 changed files with 12 additions and 6 deletions
|
@ -8,15 +8,14 @@ function showQualityMenu(player, btn) {
|
|||
const videoStream = playbackManager.currentMediaSource(player).MediaStreams.filter(function (stream) {
|
||||
return stream.Type === 'Video';
|
||||
})[0];
|
||||
const videoWidth = videoStream ? videoStream.Width : null;
|
||||
const videoHeight = videoStream ? videoStream.Height : null;
|
||||
|
||||
const videoCodec = videoStream ? videoStream.Codec : null;
|
||||
const videoBitRate = videoStream ? videoStream.BitRate : null;
|
||||
|
||||
const options = qualityoptions.getVideoQualityOptions({
|
||||
currentMaxBitrate: playbackManager.getMaxStreamingBitrate(player),
|
||||
isAutomaticBitrateEnabled: playbackManager.enableAutomaticBitrateDetection(player),
|
||||
videoWidth: videoWidth,
|
||||
videoHeight: videoHeight,
|
||||
videoCodec,
|
||||
videoBitRate,
|
||||
enableAuto: true
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue