Skip to content

Commit

Permalink
connect ボタンを押した時に media access を実行中の場合は、一旦 MediaStream を止める
Browse files Browse the repository at this point in the history
  • Loading branch information
tnamao committed Oct 18, 2023
1 parent d03679f commit d6cc470
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1209,6 +1209,10 @@ export const connectSora = () => {
if (state.soraContents.sora) {
await state.soraContents.sora.disconnect();
}
// media access でテスト表示している場合は停止する
if (state.localTestMediaStream !== null) {
dispatch(slice.actions.setLocalTestMediaStream(null));
}
// シグナリング候補のURLリストを作成する
const signalingUrlCandidates = createSignalingURL(
state.enabledSignalingUrlCandidates,
Expand Down

0 comments on commit d6cc470

Please sign in to comment.