Внешний TURN
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user