mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-29 16:29:19 +02:00
this is either gonna be great, or cursed beyond any and all
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ class WebSocketAudioPlayer {
|
||||
const liveEdge = buffered.end(buffered.length - 1);
|
||||
const lag = liveEdge - this.audio.currentTime;
|
||||
|
||||
if (lag > .85) this.audio.currentTime = liveEdge - 0.2; // snap to near live edge
|
||||
if (lag > 1) this.audio.currentTime = liveEdge - 0.25; // snap to near live edge
|
||||
}
|
||||
|
||||
Start() {
|
||||
|
||||
Reference in New Issue
Block a user