mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Prevent grey live button when loading the live
This commit is contained in:
@@ -62,6 +62,9 @@ class PeerTubeLiveDisplay extends ClickableComponent {
|
||||
const hlsjs = this.getHLSJS()
|
||||
if (!hlsjs) return
|
||||
|
||||
// Not loaded yet
|
||||
if (this.player().currentTime() === 0) return
|
||||
|
||||
const isSync = Math.abs(this.player().currentTime() - hlsjs.liveSyncPosition) < 10
|
||||
this.updateSync(isSync)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user