Enhance logging in SessionUsersPanel and ParticipantsPopup for debugging audio and video states. Update useWebRTC to initialize audio/video muted states from the service and add functionality to mute participants and disable their video. Adjust environment variables for server configuration.

This commit is contained in:
2025-11-05 17:47:39 +05:00
parent ddeb7d8148
commit d5b17d60c9
8 changed files with 457 additions and 22 deletions
@@ -30,6 +30,13 @@ function SessionUsersPanel({
const hasLocalStream = localStream !== null;
// Логируем изменения hasLocalStream для отладки
useEffect(() => {
console.log(
`[SessionUsersPanel] hasLocalStream changed to: ${hasLocalStream}`
);
}, [hasLocalStream]);
// State для хранения состояния speaking
const [localSpeaking, setLocalSpeaking] = useState<boolean>(false);
const lastSentSpeakingRef = useRef<boolean>(false);