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')