        if (typeof OBSWebSocket === 'undefined') {
                console.warn('OBS WebSocket library not loaded');
                return;
            }
            
            // Get OBS WebSocket settings from URL parameters
            const wsUrl = urlParams.get('obsws') || urlParams.get('obswebsocket') || 'ws://localhost:4455';
            const wsPassword = urlParams.get('obspw') || urlParams.get('obspassword') || '';
            
            // Only try to connect if password is provided
