Clean up
This commit is contained in:
parent
6b1bcb34a7
commit
aa1b75434d
4 changed files with 5 additions and 6 deletions
|
@ -1671,7 +1671,9 @@
|
||||||
"Theater Mode (t)": "Theater Mode (t)",
|
"Theater Mode (t)": "Theater Mode (t)",
|
||||||
"Default Mode (t)": "Default Mode (t)",
|
"Default Mode (t)": "Default Mode (t)",
|
||||||
"Quality": "Quality",
|
"Quality": "Quality",
|
||||||
|
"Auto": "Auto",
|
||||||
"Auto --[Video quality. Short form]--": "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%)",
|
"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",
|
||||||
|
@ -2246,11 +2248,9 @@
|
||||||
"Attach images by pasting or drag-and-drop.": "Attach images by pasting or drag-and-drop.",
|
"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.",
|
"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",
|
"Sports": "Sports",
|
||||||
"--end--": "--end--",
|
|
||||||
"Default Video Quality": "Default Video Quality",
|
"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.",
|
"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",
|
"Original": "Original",
|
||||||
"Enable default quality setting": "Enable default quality setting",
|
"Enable default quality setting": "Enable default quality setting",
|
||||||
"Auto (%quality%) --[Video quality popup. Long form.]--": "Auto (%quality%)"
|
"--end--": "--end--"
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,6 @@ import { version as VERSION } from './package.json';
|
||||||
import ConcreteButton from './ConcreteButton';
|
import ConcreteButton from './ConcreteButton';
|
||||||
import ConcreteMenuItem from './ConcreteMenuItem';
|
import ConcreteMenuItem from './ConcreteMenuItem';
|
||||||
import * as QUALITY_OPTIONS from 'constants/player';
|
import * as QUALITY_OPTIONS from 'constants/player';
|
||||||
import { safeGetComputedStyle, simpleSelector } from '../videojs-http-streaming--override/playlist-selectors';
|
|
||||||
|
|
||||||
// Default options for the plugin.
|
// Default options for the plugin.
|
||||||
const defaults = {};
|
const defaults = {};
|
||||||
|
|
|
@ -15,7 +15,7 @@ import Playlist from './playlist';
|
||||||
* @param {HTMLElement} el the htmlelement to work on
|
* @param {HTMLElement} el the htmlelement to work on
|
||||||
* @param {string} the proprety to get the style for
|
* @param {string} the proprety to get the style for
|
||||||
*/
|
*/
|
||||||
export const safeGetComputedStyle = function(el, property) {
|
const safeGetComputedStyle = function(el, property) {
|
||||||
if (!el) {
|
if (!el) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
|
@ -385,7 +385,7 @@ function VideoViewer(props: Props) {
|
||||||
// re-factoring.
|
// re-factoring.
|
||||||
player.on('loadedmetadata', () => restorePlaybackRate(player));
|
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', () => {
|
player.on('loadedmetadata', () => {
|
||||||
const vhs = player.tech(true).vhs;
|
const vhs = player.tech(true).vhs;
|
||||||
if (vhs) {
|
if (vhs) {
|
||||||
|
|
Loading…
Reference in a new issue