aboutsummaryrefslogtreecommitdiffstats
path: root/dist/plyr.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-02-14 17:00:33 +0000
committerSam Potts <sam@potts.es>2020-02-14 17:00:33 +0000
commit04d06f22423cc5e1b05389210f7378b8ae3e7b5d (patch)
tree030c922b6c3ad8e58feb2f70cb5727ad48a28b70 /dist/plyr.js
parent924049aa14414b5c4b06a6a2a7ac290e3f3a0f4b (diff)
downloadplyr-04d06f22423cc5e1b05389210f7378b8ae3e7b5d.tar.lz
plyr-04d06f22423cc5e1b05389210f7378b8ae3e7b5d.tar.xz
plyr-04d06f22423cc5e1b05389210f7378b8ae3e7b5d.zip
v3.5.9 deployed
Diffstat (limited to 'dist/plyr.js')
-rw-r--r--dist/plyr.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/dist/plyr.js b/dist/plyr.js
index fa105108..e763e5b6 100644
--- a/dist/plyr.js
+++ b/dist/plyr.js
@@ -3660,7 +3660,7 @@ typeof navigator === "object" && (function (global, factory) {
// Sprite (for icons)
loadSprite: true,
iconPrefix: 'plyr',
- iconUrl: 'https://cdn.plyr.io/3.5.8/plyr.svg',
+ iconUrl: 'https://cdn.plyr.io/3.5.9/plyr.svg',
// Blank video (used to prevent errors on source change)
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
// Quality default
@@ -4491,7 +4491,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 () {