aboutsummaryrefslogtreecommitdiffstats
path: root/templates/libs/plyr/plyr.polyfilled.js
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2018-11-13 19:27:57 -0500
committerJesús <heckyel@hyperbola.info>2018-11-13 19:27:57 -0500
commitb1dbcb3070607b14563e4514cf93541ee3020e15 (patch)
tree00fdac52a28b8f1618eddce3798a50df50d279cd /templates/libs/plyr/plyr.polyfilled.js
parent3a9b807499afde3775af13f5d45fc2cd6d8d6984 (diff)
downloadytlibre-b1dbcb3070607b14563e4514cf93541ee3020e15.tar.lz
ytlibre-b1dbcb3070607b14563e4514cf93541ee3020e15.tar.xz
ytlibre-b1dbcb3070607b14563e4514cf93541ee3020e15.zip
minor fix update plyr
Diffstat (limited to 'templates/libs/plyr/plyr.polyfilled.js')
-rw-r--r--templates/libs/plyr/plyr.polyfilled.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/libs/plyr/plyr.polyfilled.js b/templates/libs/plyr/plyr.polyfilled.js
index eeb1010..09e1c98 100644
--- a/templates/libs/plyr/plyr.polyfilled.js
+++ b/templates/libs/plyr/plyr.polyfilled.js
@@ -3415,7 +3415,7 @@ typeof navigator === "object" && (function (global, factory) {
getQualityOptions: function getQualityOptions() {
// Get sizes from <source> elements
return html5.getSources.call(this).map(function (source) {
- return Number(source.getAttribute('data-res'));
+ return Number(source.getAttribute('data-size'));
}).filter(Boolean);
},
extend: function extend() {
@@ -3440,7 +3440,7 @@ typeof navigator === "object" && (function (global, factory) {
var sources = html5.getSources.call(player); // Get first match for requested size
var source = sources.find(function (source) {
- return Number(source.getAttribute('size')) === input;
+ return Number(source.getAttribute('data-res')) === input;
}); // No matching source found
if (!source) {
@@ -3454,7 +3454,7 @@ typeof navigator === "object" && (function (global, factory) {
preload = _player$media.preload,
readyState = _player$media.readyState; // Set new source
- player.media.src = source.getAttribute('data-res'); // Prevent loading if preload="none" and the current source isn't loaded (#1044)
+ player.media.src = source.getAttribute('src'); // Prevent loading if preload="none" and the current source isn't loaded (#1044)
if (preload !== 'none' || readyState) {
// Restore time
@@ -5285,7 +5285,7 @@ typeof navigator === "object" && (function (global, factory) {
var update = true; // If function, run it and use output
if (is$1.function(this.config.controls)) {
- this.config.controls = this.config.controls.call(this.props);
+ this.config.controls = this.config.controls.call(this, props);
} // Convert falsy controls to empty array (primarily for empty strings)