Fix auto quality display
This commit is contained in:
parent
aa1b75434d
commit
02ac8810d9
3 changed files with 8 additions and 2 deletions
|
@ -1673,7 +1673,7 @@
|
||||||
"Quality": "Quality",
|
"Quality": "Quality",
|
||||||
"Auto": "Auto",
|
"Auto": "Auto",
|
||||||
"Auto --[Video quality. Short form]--": "Auto",
|
"Auto --[Video quality. Short form]--": "Auto",
|
||||||
"Auto(%quality%) --[Video quality popup. Long form.]--": "Auto (%quality%)",
|
"Auto %quality% --[Video quality popup. Long form.]--": "Auto (%quality%)",
|
||||||
"Orig (%quality%) --[Video quality popup. Short form.]--": "Orig (%quality%)",
|
"Orig (%quality%) --[Video quality popup. Short form.]--": "Orig (%quality%)",
|
||||||
"Original (%quality%) --[Video quality popup. Long form.]--": "Original (%quality%)",
|
"Original (%quality%) --[Video quality popup. Long form.]--": "Original (%quality%)",
|
||||||
"Original --[Video quality button. Abbreviate to fit space.]--": "Original",
|
"Original --[Video quality button. Abbreviate to fit space.]--": "Original",
|
||||||
|
|
|
@ -206,7 +206,7 @@ export const lastBandwidthSelector = function() {
|
||||||
const originalHeight = hlsQualitySelector.config.originalHeight;
|
const originalHeight = hlsQualitySelector.config.originalHeight;
|
||||||
|
|
||||||
if (hlsQualitySelector?.getCurrentQuality() === 'auto') {
|
if (hlsQualitySelector?.getCurrentQuality() === 'auto') {
|
||||||
hlsQualitySelector._qualityButton.menuButton_.$('.vjs-icon-placeholder').innerHTML = __('Auto(%quality%) --[Video quality popup. Long form.]--', { quality: selectedBandwidth.attributes.RESOLUTION.height + 'p' });
|
hlsQualitySelector._qualityButton.menuButton_.$('.vjs-icon-placeholder').innerHTML = __('Auto %quality% --[Video quality popup. Long form.]--', { quality: selectedBandwidth.attributes.RESOLUTION.height + 'p' });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -311,6 +311,12 @@ button.vjs-big-play-button {
|
||||||
}
|
}
|
||||||
.vjs-quality-selector {
|
.vjs-quality-selector {
|
||||||
order: 13 !important;
|
order: 13 !important;
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
.vjs-icon-placeholder {
|
||||||
|
word-break: break-word;
|
||||||
|
line-height: 1rem !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.vjs-button--theater-mode {
|
.vjs-button--theater-mode {
|
||||||
order: 14 !important;
|
order: 14 !important;
|
||||||
|
|
Loading…
Reference in a new issue