aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
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 }