aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-12-21 10:56:48 +0100
committerChocobozzz <me@florianbigard.com>2022-12-21 10:56:48 +0100
commitd91439648c212f9bca527cbcb05ba2e233b56deb (patch)
treefe6f5c4a079129710b5d3d2ff5760d5da0454d68 /client/src
parentf50bff17f5b69c576960360857e25224cea13c0a (diff)
downloadPeerTube-d91439648c212f9bca527cbcb05ba2e233b56deb.tar.gz
PeerTube-d91439648c212f9bca527cbcb05ba2e233b56deb.tar.zst
PeerTube-d91439648c212f9bca527cbcb05ba2e233b56deb.zip
Prevent grey live button when loading the live
Diffstat (limited to 'client/src')
-rw-r--r--client/src/assets/player/shared/control-bar/peertube-live-display.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/assets/player/shared/control-bar/peertube-live-display.ts b/client/src/assets/player/shared/control-bar/peertube-live-display.ts
index 8724ff294..cc5927473 100644
--- a/client/src/assets/player/shared/control-bar/peertube-live-display.ts
+++ b/client/src/assets/player/shared/control-bar/peertube-live-display.ts
@@ -62,6 +62,9 @@ class PeerTubeLiveDisplay extends ClickableComponent {
62 const hlsjs = this.getHLSJS() 62 const hlsjs = this.getHLSJS()
63 if (!hlsjs) return 63 if (!hlsjs) return
64 64
65 // Not loaded yet
66 if (this.player().currentTime() === 0) return
67
65 const isSync = Math.abs(this.player().currentTime() - hlsjs.liveSyncPosition) < 10 68 const isSync = Math.abs(this.player().currentTime() - hlsjs.liveSyncPosition) < 10
66 this.updateSync(isSync) 69 this.updateSync(isSync)
67 } 70 }