From 640fb7b0db8b6bf70762f8077313fb2ac0cd7a8b Mon Sep 17 00:00:00 2001 From: steveseguin Date: Tue, 11 Jul 2023 06:37:14 -0400 Subject: [PATCH] whip improvements --- check.html | 14 +- index.html | 6 +- lib.js | 269 +++++++++++++++++++++--------------- speedtest.html | 12 +- thirdparty/CodecsHandler.js | 15 +- webrtc.js | 2 +- whip.html | 55 +++++--- 7 files changed, 236 insertions(+), 137 deletions(-) diff --git a/check.html b/check.html index ec38861..1ded0ac 100644 --- a/check.html +++ b/check.html @@ -411,10 +411,22 @@ var bitrate = e.data.stats.inbound_stats[streamID][key]["Bitrate_in_kbps"]; updateData("bitrate", bitrate); } - if ("Buffer_Delay_in_ms" in e.data.stats.inbound_stats[streamID][key]){ + + + + + if ("Jitter_Buffer_ms" in e.data.stats.inbound_stats[streamID][key]){ + var buffer = e.data.stats.inbound_stats[streamID][key]["Jitter_Buffer_ms"]; + updateData("buffer", buffer); + } else if ("Buffer_Delay_in_ms" in e.data.stats.inbound_stats[streamID][key]){ var buffer = e.data.stats.inbound_stats[streamID][key]["Buffer_Delay_in_ms"]; updateData("buffer", buffer); + } else if ("Added_Buffer_Delay_ms" in e.data.stats.inbound_stats[streamID][key]){ + console.log("Added_Buffer_Delay_ms"); + var buffer = e.data.stats.inbound_stats[streamID][key]["Added_Buffer_Delay_ms"]; + updateData("buffer", buffer); } + if ("packetLoss_in_percentage" in e.data.stats.inbound_stats[streamID][key]){ var packetloss = e.data.stats.inbound_stats[streamID][key]["packetLoss_in_percentage"]; if (packetloss != undefined) { diff --git a/index.html b/index.html index 97de5e1..8c2cff0 100644 --- a/index.html +++ b/index.html @@ -83,7 +83,7 @@ - +
- - - - - + + + + - - + + - + + - + +
@@ -424,7 +424,7 @@
-

Host a stream as a WHEP sourceP

+

Host a stream as a WHEP source 🚧