feat:共享桌面移动端全屏支持

This commit is contained in:
MatrixSeven
2025-09-01 15:53:03 +08:00
parent 86fd9ec08c
commit 4faf1c3141
7 changed files with 106 additions and 20 deletions

View File

@@ -239,7 +239,7 @@ export function useSharedWebRTCManager(): WebRTCConnection {
}
// 构建完整的WebSocket URL
const wsUrl = baseWsUrl.replace('/ws/p2p', `/ws/webrtc?code=${roomCode}&role=${role}&channel=shared`);
const wsUrl = `${baseWsUrl}/api/ws/webrtc?code=${roomCode}&role=${role}&channel=shared`;
console.log('[SharedWebRTC] 🌐 连接WebSocket:', wsUrl);
const ws = new WebSocket(wsUrl);
wsRef.current = ws;