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