         }
            
            candidates.length = 0;
            candidatesBody.innerHTML = '';
            gatherBtn.disabled = true;
            
            showStatus('Detecting WebRTC restrictions...', 'info');
            
            // Check for restrictions first
            const restrictions = await detectWebRTCRestrictions();
            if (restrictions.length > 0) {
                showStatus('Detected restrictions: ' + restrictions.join('; '), 'error');
                await new Promise