diff options
author | Sam Potts <sam@potts.es> | 2020-02-14 16:54:22 +0000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2020-02-14 16:54:22 +0000 |
commit | 442427ebd53175ed47cdaa22ffc47cd1d11f4c89 (patch) | |
tree | 05458f4c38564a7e83d5fa38e919b6bba612c25b /dist/plyr.polyfilled.js | |
parent | 7954c92c0be2e06db489c1bcd367377d61fd48cb (diff) | |
download | plyr-442427ebd53175ed47cdaa22ffc47cd1d11f4c89.tar.lz plyr-442427ebd53175ed47cdaa22ffc47cd1d11f4c89.tar.xz plyr-442427ebd53175ed47cdaa22ffc47cd1d11f4c89.zip |
v3.5.9
- Fix for regression with volume control width
- Ensure poster image is not downloaded again for HTML5 videos
Diffstat (limited to 'dist/plyr.polyfilled.js')
-rw-r--r-- | dist/plyr.polyfilled.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dist/plyr.polyfilled.js b/dist/plyr.polyfilled.js index a7f62a65..de3e07f1 100644 --- a/dist/plyr.polyfilled.js +++ b/dist/plyr.polyfilled.js @@ -10786,7 +10786,12 @@ typeof navigator === "object" && (function (global, factory) { } // Set property synchronously to respect the call order - this.media.setAttribute('poster', poster); // Wait until ui is ready + this.media.setAttribute('poster', poster); // HTML5 uses native poster attribute + + if (this.isHTML5) { + return Promise.resolve(poster); + } // Wait until ui is ready + return ready.call(this) // Load image .then(function () { |