From 3f128612ba00c799c8b5b046a5172b9b09178ddb Mon Sep 17 00:00:00 2001 From: j Date: Tue, 6 Feb 2024 12:42:52 +0100 Subject: [PATCH] always use poster --- app/static/js/VideoElement.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/static/js/VideoElement.js b/app/static/js/VideoElement.js index 52d99ec..ae2b0e8 100644 --- a/app/static/js/VideoElement.js +++ b/app/static/js/VideoElement.js @@ -296,14 +296,14 @@ window.VideoElement = function(options) { video = queue.pop(); } else { video = document.createElement('video'); - if (self.options.poster) { - video.poster = self.options.poster - } restrictedElements.push(video); } } else { video = document.createElement('video'); } + if (self.options.poster) { + video.poster = self.options.poster + } video.playsinline = true video.setAttribute('playsinline', 'playsinline') video.setAttribute('webkit-playsinline', 'webkit-playsinline')