From 69abf26e80dfd9b56254130bb994fb8316d6aaa3 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Thu, 10 Aug 2023 20:01:38 -0700 Subject: [PATCH] New status options + Tweak freeze video timeout --- web/static/js/BareRTC.js | 4 ++-- web/templates/chat.html | 16 ++++++++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/web/static/js/BareRTC.js b/web/static/js/BareRTC.js index 6a9bcf7..1d9b05a 100644 --- a/web/static/js/BareRTC.js +++ b/web/static/js/BareRTC.js @@ -1025,13 +1025,13 @@ const app = Vue.createApp({ stream.getVideoTracks().forEach(videoTrack => { let freezeDetected = () => { console.log("FREEZE DETECTED:", username); - // Wait 3 seconds to see if the stream has recovered on its own + // Wait some seconds to see if the stream has recovered on its own setTimeout(() => { // Flag it as likely frozen. if (videoTrack.muted) { this.WebRTC.frozenStreamDetected[username] = true; } - }, 3000); + }, 7500); // 7.5s }; console.log("Apply onmute handler for", username); diff --git a/web/templates/chat.html b/web/templates/chat.html index 528cb7b..f60ecbd 100644 --- a/web/templates/chat.html +++ b/web/templates/chat.html @@ -982,6 +982,11 @@ @@ -1043,8 +1048,15 @@ width="24" height="24"> -
- +
+ + + + + + + +