Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Fix missing poster in the player. Closes #29

Gabe Kangas331b73b31ff7
diff --git a/webroot/index.html b/webroot/index.html
index c80dd491cb..df5b8e840d 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"
>
</video>
</div>
diff --git a/webroot/js/player/player.js b/webroot/js/player/player.js
index 6fbb5a7816..43cf528c1d 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() {