From ddc79584393b7700a4fd7feb28052d8cfac53ee7 Mon Sep 17 00:00:00 2001 From: Takeshi NAMAO Date: Wed, 13 Dec 2023 13:32:16 +0900 Subject: [PATCH] =?UTF-8?q?state=20=E3=81=AE=20localMediaStream=20?= =?UTF-8?q?=E3=82=92=E6=9B=B4=E6=96=B0=E3=81=99=E3=82=8B=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E3=82=92=E5=A4=89=E6=9B=B4=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/actions.ts b/src/app/actions.ts index e6fc8b10..a600ef03 100644 --- a/src/app/actions.ts +++ b/src/app/actions.ts @@ -1357,7 +1357,7 @@ export const connectSora = () => { // disconnect 時に stream を止めないためのハック sora.stream = null dispatch(slice.actions.setSora(sora)) - if (mediaStream) { + if (mediaStream && (state.soraContents.localMediaStream === null || forceCreateMediaStream)) { dispatch(slice.actions.setLocalMediaStream(mediaStream)) } if (gainNode) {