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