mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 12:49:37 +03:00
Force poster to reload so it uses the recent thumbnail. #37
This commit is contained in:
parent
af2a0d4019
commit
180534cfaf
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,6 @@ function handleStatus(status) {
|
|||
app.overallMaxViewerCount = status.overallMaxViewerCount;
|
||||
app.isOnline = status.online;
|
||||
setVideoPoster(app.isOnline);
|
||||
|
||||
}
|
||||
|
||||
function handleOffline() {
|
||||
|
|
|
@ -120,7 +120,8 @@ function generateUsername() {
|
|||
|
||||
function setVideoPoster(online) {
|
||||
const player = videojs(VIDEO_ID);
|
||||
const poster = online ? POSTER_THUMB : POSTER_DEFAULT;
|
||||
var cachebuster = Math.round(new Date().getTime() / 1000);
|
||||
const poster = online ? POSTER_THUMB + "?okhi=" + cachebuster : POSTER_DEFAULT;
|
||||
player.poster(poster);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue