From 66c4d6f7e5c5fe926b2ba4a1b93da8ae74fbf74f Mon Sep 17 00:00:00 2001 From: bangae1 Date: Sat, 20 Sep 2025 11:37:58 +0900 Subject: [PATCH] =?UTF-8?q?=E3=84=B4=E3=85=87=E3=84=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- call.html | 1 + src/webrtc/uiController.js | 3 ++- src/webrtc/webrtcManager.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/call.html b/call.html index ba74328..a4df344 100644 --- a/call.html +++ b/call.html @@ -6,6 +6,7 @@
+ diff --git a/src/webrtc/uiController.js b/src/webrtc/uiController.js index d7b3ba6..05d1053 100644 --- a/src/webrtc/uiController.js +++ b/src/webrtc/uiController.js @@ -47,7 +47,8 @@ export class UIController { // 원격 스트림 수신 시 자동 재생 rtcManager.onRemoteStream = (stream) => { - const audio = new Audio(); + // const audio = new Audio(); + const audio = document.querySelector('#call'); console.log(rtcManager) console.log(stream) audio.muted = false; diff --git a/src/webrtc/webrtcManager.js b/src/webrtc/webrtcManager.js index d47bdba..f642127 100644 --- a/src/webrtc/webrtcManager.js +++ b/src/webrtc/webrtcManager.js @@ -206,7 +206,7 @@ export class WebRTCManager { hangup() { this.pc?.close(); this.localStream?.getTracks().forEach(t => t.stop()); - this.ws?.close(); + // this.ws?.close(); console.log('📞 통화 종료'); } } \ No newline at end of file