Fix quality secondary text incoherency
Some checks failed
Push & Release 🌍 / Automation 🎛️ (push) Has been cancelled
Push & Release 🌍 / Unstable release 🚀⚠️ (push) Has been cancelled
Push & Release 🌍 / Quality checks 👌🧪 (push) Has been cancelled
Push & Release 🌍 / GitHub CodeQL 🔬 (push) Has been cancelled
Push & Release 🌍 / Deploy 🚀 (push) Has been cancelled

Parse correct context to the quality options object. This correctly returns the selected option name at index 0
This commit is contained in:
Dante Tyler
2025-09-11 14:23:50 +10:00
committed by mani
parent ae58599bd0
commit 445fe22f29

View File

@@ -93,12 +93,16 @@ function getQualitySecondaryText(player) {
return stream.Type === 'Video';
})[0];
const videoCodec = videoStream ? videoStream.Codec : null;
const videoBitRate = videoStream ? videoStream.BitRate : null;
const videoWidth = videoStream ? videoStream.Width : null;
const videoHeight = videoStream ? videoStream.Height : null;
const options = qualityoptions.getVideoQualityOptions({
currentMaxBitrate: playbackManager.getMaxStreamingBitrate(player),
isAutomaticBitrateEnabled: playbackManager.enableAutomaticBitrateDetection(player),
videoCodec,
videoBitRate,
videoWidth: videoWidth,
videoHeight: videoHeight,
enableAuto: true