cator');
        const statusText = document.querySelector('.status-text');
        const logContainer = document.getElementById('logContainer');
        const logContent = document.getElementById('logContent');

        // 状态管理
        let websocket = null;
        let player = null;
        let recorder = null;
        let connectionStatus = 'disconnected';
        let logsVisible = false;

        // 更新状态显示
        function updateStatus(status, message) {
            connectionStatus 