Skip to content

Commit

Permalink
fix(MeetingsSdkAdapter): stop stream when switching microphones
Browse files Browse the repository at this point in the history
  • Loading branch information
lungancatalin authored and cipak committed Sep 8, 2021
1 parent ca80867 commit cd98107
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MeetingsSDKAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,8 @@ export default class MeetingsSDKAdapter extends MeetingsAdapter {
async switchMicrophone(ID, microphoneID) {
await this.updateMeeting(ID, async (meeting, sdkMeeting) => {
let updates;

this.stopStream(meeting.localAudio.stream);
const {stream, permission} = await this.getStream(
ID,
{sendAudio: true},
Expand Down

0 comments on commit cd98107

Please sign in to comment.