feat: show full stream's width + height in stream badge

This commit is contained in:
redphx
2025-09-12 19:37:09 +07:00
parent ab3e56cf90
commit 4748a48f6c
3 changed files with 4 additions and 6 deletions

View File

@@ -9014,8 +9014,8 @@ class StreamBadges {
let match = /profile-level-id=([0-9a-f]{6})/.exec(videoStat.sdpFmtpLine);
match && (video.profile = match[1]);
}
let text = videoHeight + "p";
if (text && (text += "/"), text += video.codec, video.profile) {
let text = `${videoWidth}x${videoHeight}/${video.codec}`;
if (video.profile) {
let profile = video.profile, quality = profile;
if (profile.startsWith("4d")) quality = t("visual-quality-high");
else if (profile.startsWith("42e")) quality = t("visual-quality-normal");