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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user