diff options
Diffstat (limited to 'dist/plyr.js')
-rw-r--r-- | dist/plyr.js | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/dist/plyr.js b/dist/plyr.js index d2071524..5eb5d60b 100644 --- a/dist/plyr.js +++ b/dist/plyr.js @@ -77,7 +77,7 @@ var defaults = { // Sprite (for icons) loadSprite: true, iconPrefix: 'plyr', - iconUrl: 'https://cdn.plyr.io/3.0.0-beta.19/plyr.svg', + iconUrl: 'https://cdn.plyr.io/3.0.0-beta.20/plyr.svg', // Blank video (used to prevent errors on source change) blankVideo: 'https://cdn.plyr.io/static/blank.mp4', @@ -1511,13 +1511,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: @@ -2179,7 +2175,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 @@ -6041,7 +6037,7 @@ var source = { // ========================================================================== // Plyr -// plyr.js v3.0.0-beta.19 +// plyr.js v3.0.0-beta.20 // https://github.com/sampotts/plyr // License: The MIT License (MIT) // ========================================================================== @@ -6648,6 +6644,10 @@ var Plyr = 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 = ''; @@ -6690,6 +6690,9 @@ var Plyr = function () { callback.call(_this4.elements.original); } + // Reset state + _this4.ready = false; + // Clear for garbage collection setTimeout(function () { _this4.elements = null; |