From 5dffaf215b7e699be420367d25966d42c5210ca0 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 24 Jun 2020 14:34:22 -0700 Subject: [PATCH] Fix missing poster in the player. Closes #29 --- webroot/index.html | 2 +- webroot/js/player/player.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webroot/index.html b/webroot/index.html index c80dd491c..df5b8e840 100644 --- a/webroot/index.html +++ b/webroot/index.html @@ -75,7 +75,7 @@ GW TODO: autoplay playsinline muted - poster="https://goth.land/thumbnail.jpg" + poster="/thumbnail.jpg" > diff --git a/webroot/js/player/player.js b/webroot/js/player/player.js index 6fbb5a781..43cf528c1 100644 --- a/webroot/js/player/player.js +++ b/webroot/js/player/player.js @@ -6,7 +6,6 @@ window.VIDEOJS_NO_DYNAMIC_STYLE = true; // Create the player for the first time const player = videojs('video', null, function () { - player.poster('/thumbnail.jpg'); getStatus(); setInterval(getStatus, 5000); setupPlayerEventHandlers(); @@ -16,6 +15,7 @@ player.ready(function () { console.log('Player ready.') player.reset(); player.src({ type: 'application/x-mpegURL', src: streamURL }); + player.poster('/thumbnail.jpg'); }); function setupPlayerEventHandlers() {