Aa
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user