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