mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-31 17:29:19 +02:00
this is either gonna be great, or cursed beyond any and all
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
<script src="js/3las/fallback/3las.fallback.js"></script>
|
<script src="js/3las/fallback/3las.fallback.js"></script>
|
||||||
<script src="js/3las/3las.js"></script>
|
<script src="js/3las/3las.js"></script>
|
||||||
<script src="js/audio.js"></script>
|
<script src="js/audio.js"></script>
|
||||||
|
<script src="js/plugins/FMDXProWebrtc/rtc-audio.js"></script>
|
||||||
<style>
|
<style>
|
||||||
* {
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|||||||
+1
-1
@@ -22,7 +22,7 @@ class WebSocketAudioPlayer {
|
|||||||
const liveEdge = buffered.end(buffered.length - 1);
|
const liveEdge = buffered.end(buffered.length - 1);
|
||||||
const lag = liveEdge - this.audio.currentTime;
|
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() {
|
Start() {
|
||||||
|
|||||||
Reference in New Issue
Block a user