From cc48729d8a3ae3cc3be6cb2c709b7e94b0ea120b Mon Sep 17 00:00:00 2001 From: steveseguin Date: Mon, 17 Apr 2023 20:59:50 -0400 Subject: [PATCH 1/4] improving the bitrate for scene/directo switching --- index.html | 2 +- lib.js | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 87c5cf5..7d159a2 100644 --- a/index.html +++ b/index.html @@ -56,7 +56,7 @@ - + diff --git a/lib.js b/lib.js index 5008d09..97cd439 100644 --- a/lib.js +++ b/lib.js @@ -3455,6 +3455,8 @@ function hideHomeCheck(){ } } +// toggleQualityDirector(1200, this.dataset.UUID, this) + function switchModes(state=null){ if (state===null){ session.switchMode = !session.switchMode; @@ -3522,6 +3524,8 @@ function switchModes(state=null){ } } + + applyQualityDirector(); } } @@ -29445,7 +29449,15 @@ function sendChatMessage(chatMsg = false, bc = false) { // filtered + visual return true; } -function toggleQualityDirector(bitrate, UUID, ele = null) { // ele is specific to the button in the director's room + +function applyQualityDirector() { // lets revert back to the director's quality settings after viewing the scene + var eles = document.querySelectorAll('#guestFeeds button.pressed[data-action-type="change-quality1"],#guestFeeds button.pressed[data-action-type="change-quality2"],#guestFeeds button.pressed[data-action-type="change-quality3"]'); + eles.forEach(ele =>{ + ele.click(); + }); +} + +function toggleQualityDirector(bitrate, UUID, ele) { // ele is specific to the button in the director's room var eles = ele.parentNode.childNodes; for (var i=0;i Date: Wed, 19 Apr 2023 15:34:47 -0400 Subject: [PATCH 2/4] &structure, &blur, button press --- index.html | 8 +- lib.js | 495 ++++++++++++++++++++++++++++++++++++++++------------- main.css | 12 +- main.js | 19 +- webrtc.js | 2 +- 5 files changed, 402 insertions(+), 134 deletions(-) diff --git a/index.html b/index.html index 7d159a2..38c11f1 100644 --- a/index.html +++ b/index.html @@ -56,7 +56,7 @@ - + @@ -83,7 +83,7 @@ - + + + + @@ -164,8 +188,17 @@ function next2(){ document.getElementById("page2").classList.add("hidden"); + document.getElementById("page2a").classList.remove("hidden"); + setTimeout(function(){ + if (document.getElementById("playButton") && !document.getElementById("playButton").skip){ + next2a(); + } + },10000); + } + + function next2a(){ + document.getElementById("page2a").classList.add("hidden"); document.getElementById("page3").classList.remove("hidden"); - loadIframe(region); } function next3(){ @@ -749,6 +782,46 @@ // now clear the right-most pixels: context.clearRect(width - 1, 0, 1, height); } + + + + + + diff --git a/results.html b/results.html index 1a15406..3d55eb2 100644 --- a/results.html +++ b/results.html @@ -263,6 +263,16 @@ document.getElementById("details").innerHTML += "
Test start time: "+timeConverter(data.timestart)+"
"; } + if (data.summary){ + if (data.summary.download && data.summary.upload){ + document.getElementById("details").innerHTML += "
Max download bandwidth: "+parseInt(data.summary.download/(1024*1024))+"-mbps
"; + document.getElementById("details").innerHTML += "
Max Upload bandwidth: "+parseInt(data.summary.upload/(1024*1024))+"-mbps
"; + } + } + if (data.scores && data.scores.gaming && data.scores.gaming.classificationName && data.scores.rtc && data.scores.rtc.classificationName && data.scores.streaming && data.scores.streaming.classificationName){ + document.getElementById("details").innerHTML += "
Gaming: "+data.scores.gaming.classificationName+", RTC: "+data.scores.rtc.classificationName+", Streaming: "+data.scores.streaming.classificationName+"
"; + } + if ("resolution" in data){ updateData("resolution", data.resolution); } @@ -320,10 +330,10 @@ document.getElementById("container").innerHTML += "The network quality or bandwidth may have limited the performance.
"; } - document.getElementById("container").innerHTML += "The average bitrate was: "+parseInt(BBB/counter)+"-kbps
"; + document.getElementById("container").innerHTML += "The average video bitrate was: "+parseInt(BBB/counter)+"-kbps
"; if (BBB/counter<500){ - document.getElementById("container").innerHTML += "

Bitrate is really bad

"; + document.getElementById("container").innerHTML += "Did they select an active camera?

Bitrate is really bad

"; } else if (BBB/counter<1000){ document.getElementById("container").innerHTML += "

Bitrate is poor

"; @@ -335,7 +345,7 @@ document.getElementById("container").innerHTML += "

Bitrate is good

"; } - document.getElementById("container").innerHTML += "
The average buffer length was: "+parseInt(BUFF/BUFFCCC)+"-ms
"; + document.getElementById("container").innerHTML += "
The average video buffer length was: "+parseInt(BUFF/BUFFCCC)+"-ms
"; if (BUFF/BUFFCCC>500){ document.getElementById("container").innerHTML += "

Video delay is really bad


"; @@ -350,7 +360,7 @@ document.getElementById("container").innerHTML += "

Video delay is good


"; } - document.getElementById("container").innerHTML += "The average packet loss was: "+(parseInt(PAK*1000/PAKCCC)/1000.0)+"%
"; + document.getElementById("container").innerHTML += "The average video packet loss was: "+(parseInt(PAK*1000/PAKCCC)/1000.0)+"%
"; if (PAK/PAKCCC>3){ document.getElementById("container").innerHTML += "

Packet loss is extremely bad; Must Fix This

"; From 329121c395a8bfa997f7d1f736284a3cce5d003d Mon Sep 17 00:00:00 2001 From: steveseguin Date: Fri, 21 Apr 2023 11:40:57 -0400 Subject: [PATCH 4/4] fix for &cover and &border --- check.html | 4 ++-- index.html | 4 ++-- lib.js | 23 +++++++++++------------ 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/check.html b/check.html index 69367cd..ec38861 100644 --- a/check.html +++ b/check.html @@ -115,8 +115,8 @@

The next step will access your camera and microphone.


- Accept the camera and microphone permissions if prompted.
- No one will be able to see your video or audio, other than you. + Accept the camera and microphone permissions if prompted.

+ No one will be able to see your video or audio, other than you.


🌠🌠🌠⭐ diff --git a/index.html b/index.html index 38c11f1..32fd42d 100644 --- a/index.html +++ b/index.html @@ -83,7 +83,7 @@ - +