mirror of
https://github.com/owncast/owncast.git
synced 2024-11-28 11:09:01 +03:00
Fix missing poster in the player. Closes #29
This commit is contained in:
parent
a3273e9deb
commit
5dffaf215b
2 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ GW TODO:
|
||||||
autoplay
|
autoplay
|
||||||
playsinline
|
playsinline
|
||||||
muted
|
muted
|
||||||
poster="https://goth.land/thumbnail.jpg"
|
poster="/thumbnail.jpg"
|
||||||
>
|
>
|
||||||
</video>
|
</video>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -6,7 +6,6 @@ window.VIDEOJS_NO_DYNAMIC_STYLE = true;
|
||||||
|
|
||||||
// Create the player for the first time
|
// Create the player for the first time
|
||||||
const player = videojs('video', null, function () {
|
const player = videojs('video', null, function () {
|
||||||
player.poster('/thumbnail.jpg');
|
|
||||||
getStatus();
|
getStatus();
|
||||||
setInterval(getStatus, 5000);
|
setInterval(getStatus, 5000);
|
||||||
setupPlayerEventHandlers();
|
setupPlayerEventHandlers();
|
||||||
|
@ -16,6 +15,7 @@ player.ready(function () {
|
||||||
console.log('Player ready.')
|
console.log('Player ready.')
|
||||||
player.reset();
|
player.reset();
|
||||||
player.src({ type: 'application/x-mpegURL', src: streamURL });
|
player.src({ type: 'application/x-mpegURL', src: streamURL });
|
||||||
|
player.poster('/thumbnail.jpg');
|
||||||
});
|
});
|
||||||
|
|
||||||
function setupPlayerEventHandlers() {
|
function setupPlayerEventHandlers() {
|
||||||
|
|
Loading…
Reference in a new issue