aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-02-14 16:53:55 +0000
committerSam Potts <sam@potts.es>2020-02-14 16:53:55 +0000
commit7954c92c0be2e06db489c1bcd367377d61fd48cb (patch)
treea8ffbdb9cb62bc67fcbadff2d90a8fa18b6e38be /src/js
parent426280f90cfb4328055255bab3ae55df3f3d4786 (diff)
parent5afb14283a40abdf46afae8a34fd5fe66114446e (diff)
downloadplyr-7954c92c0be2e06db489c1bcd367377d61fd48cb.tar.lz
plyr-7954c92c0be2e06db489c1bcd367377d61fd48cb.tar.xz
plyr-7954c92c0be2e06db489c1bcd367377d61fd48cb.zip
Merge branch 'master' into develop
Diffstat (limited to 'src/js')
-rw-r--r--src/js/ui.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/js/ui.js b/src/js/ui.js
index b443766b..32db6ae7 100644
--- a/src/js/ui.js
+++ b/src/js/ui.js
@@ -172,6 +172,11 @@ const ui = {
// Set property synchronously to respect the call order
this.media.setAttribute('poster', poster);
+ // HTML5 uses native poster attribute
+ if (this.isHTML5) {
+ return Promise.resolve(poster);
+ }
+
// Wait until ui is ready
return (
ready