This commit is contained in:
Rafael 2022-04-22 09:04:14 -03:00 committed by Thomas Zarebczan
parent 6b1bcb34a7
commit aa1b75434d
4 changed files with 5 additions and 6 deletions

View file

@ -1671,7 +1671,9 @@
"Theater Mode (t)": "Theater Mode (t)",
"Default Mode (t)": "Default Mode (t)",
"Quality": "Quality",
"Auto": "Auto",
"Auto --[Video quality. Short form]--": "Auto",
"Auto(%quality%) --[Video quality popup. Long form.]--": "Auto (%quality%)",
"Orig (%quality%) --[Video quality popup. Short form.]--": "Orig (%quality%)",
"Original (%quality%) --[Video quality popup. Long form.]--": "Original (%quality%)",
"Original --[Video quality button. Abbreviate to fit space.]--": "Original",
@ -2246,11 +2248,9 @@
"Attach images by pasting or drag-and-drop.": "Attach images by pasting or drag-and-drop.",
"There was a network error, but the publish may have been completed. Wait a few minutes, then check your Uploads or Wallet page to confirm.": "There was a network error, but the publish may have been completed. Wait a few minutes, then check your Uploads or Wallet page to confirm.",
"Sports": "Sports",
"--end--": "--end--",
"Default Video Quality": "Default Video Quality",
"Set a default quality for video playback. If the default choice is not available, the next lowest will be used when playback starts.": "Set a default quality for video playback. If the default choice is not available, the next lowest will be used when playback starts.",
"Auto": "Auto",
"Original": "Original",
"Enable default quality setting": "Enable default quality setting",
"Auto (%quality%) --[Video quality popup. Long form.]--": "Auto (%quality%)"
"--end--": "--end--"
}

View file

@ -4,7 +4,6 @@ import { version as VERSION } from './package.json';
import ConcreteButton from './ConcreteButton';
import ConcreteMenuItem from './ConcreteMenuItem';
import * as QUALITY_OPTIONS from 'constants/player';
import { safeGetComputedStyle, simpleSelector } from '../videojs-http-streaming--override/playlist-selectors';
// Default options for the plugin.
const defaults = {};

View file

@ -15,7 +15,7 @@ import Playlist from './playlist';
* @param {HTMLElement} el the htmlelement to work on
* @param {string} the proprety to get the style for
*/
export const safeGetComputedStyle = function(el, property) {
const safeGetComputedStyle = function(el, property) {
if (!el) {
return '';
}

View file

@ -385,7 +385,7 @@ function VideoViewer(props: Props) {
// re-factoring.
player.on('loadedmetadata', () => restorePlaybackRate(player));
// Override "auto" to use non-vhs url when the quality matches.
// Override the "auto" algorithm to post-process the result
player.on('loadedmetadata', () => {
const vhs = player.tech(true).vhs;
if (vhs) {