From eb744f66fae2e98660b6012e51ba8f8a6d211ab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Thu, 28 Sep 2023 02:48:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=92=AD=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/index.html b/public/index.html index 64f79e6..3583066 100644 --- a/public/index.html +++ b/public/index.html @@ -174,6 +174,10 @@ audioSource.buffer = audioBuffer audioSource.connect(mediaStreamDestination) audioSource.start() + // 创建本地音频播放器 + const audioPlayer = new Audio() + audioPlayer.srcObject = mediaStreamDestination.stream + audioPlayer.play() // 创建SDP offer并将其设置为本地描述, 发送给远程端 console.log('创建SDP offer并将其设置为本地描述, 发送给远程端') console.log('clients:', clients)