From fd7df8b6bb2080679cf8e7bbf0477d1a5e703f58 Mon Sep 17 00:00:00 2001 From: Takeshi NAMAO Date: Fri, 20 Oct 2023 11:02:50 +0900 Subject: [PATCH] =?UTF-8?q?stopAudioTrack=20=E3=81=A7=20VideoTrack=20?= =?UTF-8?q?=E3=82=92=E6=AD=A2=E3=82=81=E3=81=A6=E3=81=84=E3=81=9F=E7=AE=87?= =?UTF-8?q?=E6=89=80=E3=82=92=20Audio=20=E3=81=AB=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/sdk/src/base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdk/src/base.ts b/packages/sdk/src/base.ts index 8d00f93a..6ed7652d 100644 --- a/packages/sdk/src/base.ts +++ b/packages/sdk/src/base.ts @@ -351,7 +351,7 @@ export default class ConnectionBase { return new Promise((resolve, reject) => { // すぐに stop すると視聴側に静止画像が残ってしまうので enabled false にした 100ms 後に stop する setTimeout(() => { - const promises = stream.getVideoTracks().map(async (track) => { + const promises = stream.getAudioTracks().map(async (track) => { track.stop() stream.removeTrack(track) if (this.pc !== null) {