aboutsummaryrefslogtreecommitdiffstats
path: root/dist/plyr.polyfilled.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/plyr.polyfilled.js')
-rw-r--r--dist/plyr.polyfilled.js17
1 files changed, 10 insertions, 7 deletions
diff --git a/dist/plyr.polyfilled.js b/dist/plyr.polyfilled.js
index a2c7bd9e..2767e044 100644
--- a/dist/plyr.polyfilled.js
+++ b/dist/plyr.polyfilled.js
@@ -6702,13 +6702,9 @@ var support = {
break;
case 'youtube:video':
- api = true;
- ui = support.rangeInput && (!browser.isIPhone || playsInline);
- break;
-
case 'vimeo:video':
api = true;
- ui = support.rangeInput && !browser.isIPhone;
+ ui = support.rangeInput && (!browser.isIPhone || playsInline);
break;
default:
@@ -7370,7 +7366,7 @@ var ui = {
var _this = this;
// Re-attach media element listeners
- // TODO: Use event bubbling
+ // TODO: Use event bubbling?
this.listeners.media();
// Don't setup interface if no support
@@ -11839,6 +11835,10 @@ var Plyr$1 = function () {
var soft = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
+ if (!this.ready) {
+ return;
+ }
+
var done = function done() {
// Reset overflow (incase destroyed while in fullscreen)
document.body.style.overflow = '';
@@ -11881,6 +11881,9 @@ var Plyr$1 = function () {
callback.call(_this4.elements.original);
}
+ // Reset state
+ _this4.ready = false;
+
// Clear for garbage collection
setTimeout(function () {
_this4.elements = null;
@@ -12500,7 +12503,7 @@ var Plyr$1 = function () {
// ==========================================================================
// Plyr Polyfilled Build
-// plyr.js v3.0.0-beta.19
+// plyr.js v3.0.0-beta.20
// https://github.com/sampotts/plyr
// License: The MIT License (MIT)
// ==========================================================================