Внешний TURN

This commit is contained in:
Халимов Рустам
2026-03-11 16:18:56 +03:00
parent 18f39ecea8
commit 926482861f
4 changed files with 48 additions and 1 deletions
+7
View File
@@ -319,6 +319,13 @@ export default function CallModal({ isOpen, onClose, targetUser, callType: initi
setCallState('calling');
try {
// Security context check (critical for KeenDNS)
if (!window.isSecureContext) {
alert('Критическая ошибка: Совершение аудио/видео звонков требует безопасного соединения (HTTPS).\n\nЗайдите в настройки KeenDNS и убедитесь, что включено HTTPS (SSL), а в браузере используйте https:// вместо http://');
setCallState('ended');
return;
}
// Get media (video with camera enumeration fallback)
console.log('[startCall] Getting media, wantVideo:', callType === 'video');
const { stream, hasVideo } = await getMediaWithCameraFallback(callType === 'video');