This commit is contained in:
2025-10-20 21:23:53 +09:00
parent 47cb814162
commit 43715653b3
2 changed files with 4 additions and 0 deletions

View File

@@ -95,6 +95,8 @@ window.electronAPI.receive('webrtcSignal', async (data) => {
if (!peerConnection) return;
if (data.type === 'icecandidate' && data.candidate) {
await peerConnection.addIceCandidate(new RTCIceCandidate(data.candidate));
} else if(data.type === 'answer') {
await peerConnection.setRemoteDescription(new RTCSessionDescription(data.answer));
}
} catch (err) {
console.error('ICE candidate 처리 오류:', err);