Enhance SessionUsersPanel and UserCamera components by implementing local speaking state management with debounce for efficient updates. Refactor grid column calculation and participant filtering for improved performance. Adjust logging in useVoiceActivity and useWebRTC hooks to reduce console noise.

This commit is contained in:
2025-10-30 18:14:44 +05:00
parent af4ca0637a
commit 1cacd070eb
4 changed files with 94 additions and 83 deletions
+2 -2
View File
@@ -132,9 +132,9 @@ export function useVoiceActivity(
}
}
// Логируем каждые 30 вызовов (~500ms при частоте 60 Hz)
// Логируем каждые 180 вызовов (~3 секунды при частоте 60 Hz) - снижено для меньшего шума
frameCount++;
if (frameCount % 30 === 0) {
if (frameCount % 180 === 0) {
console.log(
`[VoiceActivity] Level: ${audioLevel.toFixed(
1